How can I specify particular annotation processors to run in javac? [message #1814999] |
Mon, 23 September 2019 23:02  |
Eclipse User |
|
|
|
I'm investigating the "Checker Framework", to see if I can get it to work inside Eclipse, not just from Maven (some trouble with that also). It uses annotation processors. It requires specifying the processors I want to run.
In the "Annotation Processing" section underneath "Java Compiler" in project properties, I can add references to the jars that contain the annotation processors. Since I'm building this from Maven, I referenced the two required jars relative to the "M2_REPO" variable, like "M2_REPO/org/checkerframework/checker-qual/2.11.0/checker-qual-2.11.0.jar". I then looked for where I set the processors I want to run. The only thing that comes close to that comes from the "Advanced" button. This brings up a dialog that seems to be about the individual processors in the processor jar, but there's nothing in the list. It doesn't seem to find any in any of the checker jars.
|
|
|
|
Re: How can I specify particular annotation processors to run in javac? [message #1815030 is a reply to message #1815024] |
Tue, 24 September 2019 09:24  |
Eclipse User |
|
|
|
Yes. I didn't say "Factory Path", but that's obviously the only place you can add references to jars within "Annotation Processing", and that's the only way the "Advanced" button becomes sensitive.
I also tried adding the jars relative to the variable, as I described in the original note, but I also tried adding the absolute path to the jars. None of those have any processors in the list when I click the "Advanced" button.
|
|
|
Powered by
FUDForum. Page generated in 0.02421 seconds