Using the Annotation Processor - Apache Ant - javac
8.4.1.2. Apache Ant Similar to directly working with javac, the annotation processor can be added as as compiler argument when invoking the javac task for Apache Ant: Example 8.2. Using the annotation processor with Ant