Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Merge results of annotation processor (AbstractProcessor, AnnotationProcessor)
Merge results of annotation processor (AbstractProcessor, AnnotationProcessor) [message #261068] Wed, 08 July 2009 11:48 Go to next message
Eclipse UserFriend
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
Re: Merge results of annotation processor (AbstractProcessor, AnnotationProcessor) [message #261118 is a reply to message #261068] Fri, 10 July 2009 00:06 Go to previous message
Eclipse UserFriend
"Lo
Previous Topic:CRTL + . and the next error / warning
Next Topic:constructor declaration not a declaration ?
Goto Forum:
  


Current Time: Wed May 07 14:30:01 EDT 2025

Powered by FUDForum. Page generated in 0.05910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top