ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: how to pass -J option to <javac
Date Mon, 31 Mar 2003 20:21:40 GMT
Hanasaki JiJi wrote:
> 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 "$@"

you might want to write your own adapter to the generics compiler; the 
back end class that goes from the user specification to the actual 
compiler invocation.

View raw message