On Thu, Apr 8, 2010 at 12:40, Joe Darcy <[email protected]> wrote: > Hello. > > From time to time, I want to run an annotation processor over all the Java > sources going into the JDK. Annotation processors as compiler plug-ins can > be used to check various structural properties of the code. For example, an > annotation processor could be used to find potential methods to be converted > to use var-args. > > The goal is to ideally have a single command like > > javac -proc:only -processor MyProcessor $OTHER_OPTIONS `Long list of > files` > > and I wanted to verify the proper way to get the long list of files. From > the root of a JDK 7 forest with a build directory, does > > find corba/src \ > jaxp/drop/jaxp_src \ > jaxws/drop/jaxws_src \ > langools/src \ > jdk/src/share jdk/src/$OS \ > $BUILDDIR/$PLATFORM/gensrc \ > -name "*.java" > > cover all the files of interest?
That looks pretty good; if you wanted to verify its accuracy, you could build a list of class files by running jar tf on the jar files in the images, and correlating with the results from running find on the source files as you did above. Martin
