Mmmm, there is a fast possibility, though it sounds a little like brute force. You 
could try it in case you have little time.

In your build.xml which is being called by the automated build process, use a <java> 
task to launch a virtual machine with the JDK you may need. Use this <java> task to 
launch another runnin Ant that process your actual targets.

I know it is somehow involved but can save you if you are in a hurry.

Cheers,

Roberto.

> -----Mensaje original-----
> De:   Barnes, Michael [SMTP:[EMAIL PROTECTED]
> Enviado el:   viernes, 08 de octubre de 2004 15:23
> Para: 'Ant Users List'
> Asunto:       RE: Switching JDK 
> 
> I thought about that. But my problem is that this is being called from an
> automated build process which is managaging several ant scripts.
> 
> Mike
> 
> -----Original Message-----
> From: Roberto Juarez [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 08, 2004 9:21 AM
> To: Ant Users List
> Subject: RE: Switching JDK 
> 
> 
> You could try to change the JAVA_HOME environment variable via a shell
> script.
> 
> Cheers.
> 
> > -----Mensaje original-----
> > De: Barnes, Michael [SMTP:[EMAIL PROTECTED]
> > Enviado el: viernes, 08 de octubre de 2004 15:14
> > Para:       '[EMAIL PROTECTED]'
> > Asunto:     Switching JDK 
> > 
> > I have 2 JDK's on my system. I need to get ant to use the appropriate JDK
> > and can not figure out how to do this as well as verifying that ant is
> using
> > the appropriate JDK. BTW, I am running ANT 1.6.1
> > 
> > Thanks
> > 
> > 
> > **************************************************************
> > This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, please contact sender immediately by
> reply e-mail and destroy all copies.  You are hereby notified that any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, is strictly prohibited.
> > TIAA-CREF
> > **************************************************************
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> **************************************************************
> This message, including any attachments, contains confidential information intended 
> for a specific individual and purpose, and is protected by law.  If you are not the 
> intended recipient, please contact sender immediately by reply e-mail and destroy 
> all copies.  You are hereby notified that any disclosure, copying, or distribution 
> of this message, or the taking of any action based on it, is strictly prohibited.
> TIAA-CREF
> **************************************************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to