> 1. .java or .class files ? > > that openjpac enhancer works on .java files. > > I thought it works on .class files ... can one clarify that point ? > > In other words, should I have .java (source folder) or .class (dest > folder after compile) here ? > <openjpac> > <fileset dir="."> > <include name="**/model/*.java" />
it can at least work on *.class files as that's how I use it. > Is openjpac a generator (produce .java file) or an enhancer (modify the > byte code inside .class files) ? when I use them on my .class files, I believe they are modifed "in place" in the .class files. > 2. why use for openjpac the classpath used for the taskdef ? > Also, from here : http://openjpa.apache.org/enhancement-with-ant.html > I understand that the taskdef point, as a classpath element, to the > openjpa .jar files. > > But why do we have to write that, where is the logic ? > <openjpac> <classpath refid="jpa.enhancement.classpath"/> </openjpac> I don't believe you have to, you can specify the classpath how ever you want, but the above might be simpler rather than putting the entire class path for every task you have. I don't believe this isn't an openjpa specific thing, I believe this is just how you choose to use ant scripts, check the ant manual for more info on refid's. -- Ted Leung [email protected] I am what what the world has taught me to be.
