-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there anyway to set JOOR to create a test directory under \target ? #87
Comments
Not sure what could be missing here. Would you mind creating a complete test case so we can reproduce it? |
Hi @lukaseder, thanks for your time. I've pushed an initial code of my annotation processor project to github: https://github.com/cvgaviao/c8tech-jlib-i18n/blob/master/c8tech-jlib-i18n-apt/src/test/java/br/com/c8tech/jlib/i18n/apt/MessageBundleAnnotationProcessorTest.java Note that when running this test the resulting artifacts are being created inside the c8tech-jlib-i18n-apt/ directory. |
I see, so the processor is here: https://github.com/cvgaviao/c8tech-jlib-i18n/blob/c9b1b11ddd74f767be2b1f72f04fa7b62ae8c92b/c8tech-jlib-i18n-apt/src/main/java/br/com/c8tech/jlib/i18n/apt/MessageBundleGeneratorAnnotationProcessor.java, for the record. Have you tried specifying the |
Wow, this is it !!! As I'm using Junit5, I've created a simple extension that creates and injects the method test's directory into a Path method parameter. So the developer just need to use it to set the I'll will commit and post the link here soon. Perhaps others need it too. thanks ! |
@lukaseder, one more question: Do I need to set any parameter in order to see the messages provided to |
Well, actually the use of When generating resource files using But unfortunately, neither Somehow the calculated directory being used is something like this: |
I guess that's currently not possible yet. The output appears in the exception in case of a compilation error, but not in case of the happy path. I've created a feature request for this: #88 |
I'm trying to create an annotation processor class and started to use JOOR to test it.
In the class under test I'm creating a resource file:
I'm running the test inside Eclipse IDE and I was expecting that the resulting files was being created inside a specific test directory under project's \target directory, but it is being created inside my annotation processor project's directory instead.
Am I missing something ?
The text was updated successfully, but these errors were encountered: