I am working on a Java program ( Dagger ) that uses the Java Annotation Processing API to generate code. When our program encounters an annotation in Foo.java , it generates Foo$$InjectAdapter.java . We use the Filer API to attach the source Element that invoked the generated code.
Filer docs say this is intended to support incremental builds:
"This information can be used in an incremental environment to determine whether to restart the processors or delete the generated files. Non-incremental environments can ignore information about the source element."
Does anyone know of an incremental environment using this information? Does javac or the Eclipse compiler use this information?
source share