ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: ant / <javac> with jdk 5
Date Wed, 18 Apr 2007 10:06:33 GMT
Rebhan, Gilbert wrote:
> 
> So if i need to support builds for jdk 1.5 i have to
> go via path/to/jdk1.5/bin/javac.exe and <exec> , right ?
> 

I think you can probably get javac to switch by

fork="true"
executable=path/to/jdk1.5/bin/javac.exe
includejavaruntime="false"
includeAntRuntime="false"

you have to set up the classpath to include all the jdk5 jars, because 
you will probalby need to strip out ant and the jdks runtime from the 
classpath handed to javac.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message