Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ANT javac template

843793Nov 4 2002 — edited Mar 9 2003
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2003
Added on Nov 4 2002
2 comments
220 views