ANT javac template
843793Nov 4 2002 — edited Mar 9 2003Hi all!
Can anyone provide a better <javac...> task for compiling
JSR014 files? I use the below one, which is OK:
------------------------------------------------
<javac
fork="yes"
compiler="modern"
executable="${java.home}/../bin/javac"
destdir="${build.dir}/classes"
deprecation="on"
source="1.5"
target="1.5"
debug="${jcompiler.debug}"
optimize="${jcompiler.optimize}">
<compilerarg line="-J-Xbootclasspath/p:${lib.dir}/gj/javac.jar"/>
<compilerarg line="-bootclasspath ${lib.dir}/gj/collect.jar;${java.home}/lib/rt.jar"/>
<!-- <compilerarg line="-warnunchecked"/>-->
<classpath refid="project.classpath"/>
<!-- <classpath refid="jelly.classpath"/> -->
<src path="${src.dir}/java"/>
</javac>
------------------------------------------------
If someone has a better one, post it! The above one works fine for me, but requires forking.
Hristo