Merge results of annotation processor (AbstractProcessor, AnnotationProcessor) [message #261068] |
Wed, 08 July 2009 11:48  |
Eclipse User |
|
|
|
Hi,
I want to generate a single source file from multiple annotated source
files.
Hickory (https://hickory.dev.java.net/) StateSaver seems to implement
the kind of functionality I want, but I can't get it to work in Eclipse.
It is based on JDK 1.6 javax.annotation.processing.AbstractProcessor,
which is not a com.sun.mirror.apt.AnnotationProcessor (the JDK 1.5 way).
Except a mention of this problem with no solution in a mail in this
newsgroup in 03/12/2007 20:34, I have not found anything else that might
be relevant.
My AbstractProcessor is defined in a plugin that depends on other
plugins. I export it to a jar, as Preferences -> Java Compiler ->
Annotation Processing -> Factory Path does not propose my dev workspace
plugin when I click on "Add JARs ..." despite the plugin is available in
my PDE Runtime and declares
META-INF/services/javax.annotation.processing.Processor file.
When I "Add [it as] External JArs", I can see it, "Advanced" shows the
processor, but breakpoints in process(...) are never reached, and when I
write a trace in a local file, the trace is never generated, which lets
me thing my Processor (extends AbstractProcessor) is never invoked.
Of course, the associated annotation is defined in a java file in my PDE
Runtime workspace.
"Run in batch mode" seems of no effect.
Any help would be appreciated.
Loïc
|
|
|
|
Powered by
FUDForum. Page generated in 0.05910 seconds