annotation processing - dependencies in source files => builder [message #1216080] |
Thu, 28 November 2013 05:08 |
Eclipse User |
|
|
|
Hi.
I've been writing a JSR 330 compatible annotation framework.
When doing clean rebuilds or build all, everything ist fine.
Problems arise with incremental builds, as one of the natures of JSR 330 is to create compilation / annotation processing dependencies between source/class files which usually are not dependant.
So I spent a few days trying to figure out a way how it would be possible to convince a builder to not only build the "default" resouce delta on incremental builds.
This took me from change listeners to builders => InternalBuilder => BuildManager down to Workspace.getElementTree(). I learned about creating or deleting resources will modify this tree, but I could not figure out wether or how it was possible to additionally "touch" resources (just to get them contained in the "resource delta" a builder compiles/works on).
It would be nice, if someone could point out how things are to be "manipulated" to inflict a suitable IResourceDelta for annotation processor runs and the java builder.
|
|
|
Powered by
FUDForum. Page generated in 0.03478 seconds