Re: Want to build under multiple JDKs

2005-01-07 Thread Yves Martin
Scott Simpson <[EMAIL PROTECTED]> writes: > Antoine Levy-Lambert wrote: >> 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. >> would do for >> instance. > > You aren't understanding my pr

Re: Want to build under multiple JDKs

2005-01-07 Thread Douglas Lochart
Now that I understand your problem (I think), why do you need to "find" the installations of the jdk's rather than having each JDK location set in a property? On any machine that is doing builds it is good practice to install the JDK's in consistent locations, this lets you create properties f

Re: Want to build under multiple JDKs

2005-01-07 Thread Scott Simpson
Antoine Levy-Lambert wrote: 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. would do for instance. You aren't understanding my problem. Of course I know how to call using different JDKs. The p

RE: Want to build under multiple JDKs

2005-01-07 Thread Dick, Brian E.
Sorry, misinterpreted your post. -Original Message- From: Scott Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 7:21 PM To: user@ant.apache.org Subject: Re: Want to build under multiple JDKs Dick, Brian E. wrote: > There is a java.version property. Maybe you can

Re: Want to build under multiple JDKs

2005-01-07 Thread Antoine Levy-Lambert
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

Re: Want to build under multiple JDKs

2005-01-06 Thread Scott Simpson
Dick, Brian E. wrote: There is a java.version property. Maybe you can use that instead of checking the PATH. That won't work. I want to use two different JDKs in the same build. The java.version property just tells me the one it found. This also implies that I have to spawn the JDK as a separate

RE: Want to build under multiple JDKs

2005-01-06 Thread Dick, Brian E.
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

Want to build under multiple JDKs

2005-01-06 Thread Scott Simpson
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