apt not discovering my factory
I'm using apt to generate Java code from an annotated enum but for some reason the factory discovery process described in "Getting Started with apt" doesn't find my factory. The command line I'm using looks like:
apt -source 1.5 -classpath "c:\path\to\lib.jar;c:\path\to\factory.jar" -d build -s src\gen src\java\path\to\MyEnum.java
Running that yields
warning: No annotation processors found but annotations present.
Interestingly, if I change the command line to point directly at the factory like so:
apt -source 1.5 -classpath "c:\path\to\lib.jar;c:\path\to\factory.jar" -d build -s src\gen -factory "package.of.MyAnnotationProcessorFactory" src\java\path\to\MyEnum.java
it works perfectly. If I only needed to use one factory, I would be fine with that, but I already have another piece of infrastructure built on apt that processes a different set of annotations. I guess I could do it in two passes, but I'd really rather have apt automatically discover the processor factories for me. Can someone tell me what's going on?