Hello Scott, Dick,
as usual a look at the manual can help. [1]
The answer is to use the fork attribute of the javac task, and specify the executable.
<javac fork="true" executable="c:/jdk1.3/bin/javac.exe"/> would do for instance.
(of course in real life you will use properties to tell ant where javac of JDK 1.3 is installed.)
Cheers, Antoine [1] http://ant.apache.org/manual/CoreTasks/javac.html
Dick, Brian E. wrote:
There is a java.version property. Maybe you can use that instead of checking the PATH.
-----Original Message-----
From: Scott Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 6:42 PM
To: user@ant.apache.org
Subject: Want to build under multiple JDKs
We have some Java code that I want to build under multiple JDKs in Ant. I have both JDK 1.3 and JDK 1.4 installed and I need to build certain code under each version of the JDK. Any suggestions? I was thinking I might have to create a custom task to look down the PATH and find the latest version of the 1.3 or 1.4 on it and return it.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]