ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <dbarc...@mercator.com>
Subject RE: Switching versions of java during an ant build
Date Tue, 16 Apr 2002 15:54:20 GMT



> From: Simon Curran [mailto:s.curran@aepona.com]
> ...
> 
> is what you are saying that i should start another ant 
> process from within a current ant process and pass it a new 
> setting for
> JAVA_HOME based on where the 1.4 sdk is installed??.
> 
> if so, how would i go about doing this??

There's a task for running a command (in the command line interpreter
of the local system); it's <exec> or something like that.  It takes 
elements for specifying environment variables for the invocation of the 
command ("<env>" maybe?).  

Use such a task to run Ant (that is, something like "ant sometarget")
would be the command to execute.  Use environment-variable subelements
to set "JAVA_HOME" to the appropriate value for target "sometarger".


Daniel





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


Mime
View raw message