ANT + Multiple Java SDK's

Status
Not open for further replies.
Hey Guys

We're planning on upgrading our SDK from Java5 to Java6 but we still want to do builds for both on the same box. We currently use ANT 1.7.1 and use the built in JAVAC task (We also use Parabuild for build automation). What I'm trying to do is run builds from both SDK's on the same box w/out having to keep switching back and forth with JAVA_HOME.. any ideas? (We're building on both Linux and Windows boxes)

Thanks;
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Yes. Isn't that what you want?

I suspect that doing it via the actual other version of java requires changing the JAVA_HOME variable for the entire ant process to make it happen globally or you writing your own javac like target that launches a new process with the appropriate path to the desired compiler. Unless someone already did it, I haven't used Ant in years.
 
Status
Not open for further replies.