Annotation Processing Tool (apt) support

My project uses some older libraries that generate code based on annotations with the old java5 style apt tool.  Eclipse has built-in functionality to process these at compile time, does IDEA?

3 comments
Comment actions Permalink

I am not familiar with apt, just want to say that annotation processors are supported. Please see Settings dialog / Compiler / Annotation Processors and related help pages. Is there something missing?

Regards,
Alexander.

0
Comment actions Permalink

I know IDEA supports Java 6 style annotation processors, apt is the utility that was used to process annotations in Java 5:

http://docs.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html

The API is different between the two annotation processors, see here for a mapping:

http://docs.oracle.com/javase/7/docs/technotes/guides/apt/GettingStarted.html

The issue is I'm trying to get my company to migrate from Eclipse to IDEA, and everything works great except I have to rely on a seperate (and very slow) tool to generate classes from these annotations.  Support is built into eclipse for both styles of annotation processing so it is fast an seamless.

So does this mean IDEA does not have support for Java 5 style annotation processing?

0
Comment actions Permalink

I've played a bit with this and it looks like apt really cannot be tuned.

Regards,
Alexander.

0

Please sign in to leave a comment.