Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
how to pass -J option to <javac

how to pass -J option to <javac

2003-03-31       - By Hanasaki JiJi
Reply:     1     2     3  

any way to pass the option flag -J to the <javac task in ANT?

It is needed to use the beta of JSR14 java generics as shown in the
below batch file for Unix that executes the new compiler.

exec ${J2SE14}/bin/javac -J-Xbootclasspath/p:${JSR14DISTR}/javac.jar
-bootclasspath ${JSR14DISTR}/collect.jar:${J2SE14}/jre/lib/rt.jar
-source 1.5 "$@"



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.