Thanks for responding. Can you give an example on how to do that ? -----Original Message----- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 12:02 AM To: user@ant.apache.org Subject: Re: Using 2 versions of JAVA_HOME through one build script
On Wed, 25 Jan 2006, Srikrishna Parthasarathy <[EMAIL PROTECTED]> wrote: > I have the following build.xml file for doing the build. I need to > switch my java_home every time to do two versions of weblogic > builds. Instead of setting through system control panel JAVA_HOME , > I want to set it through ant script. I'm afraid you can't, unless the tasks you use support setting it in some way. The only way I'd see is using <exec> (which allows re-setting environment variables) instead of the custom tasks. Stefan --------------------------------------------------------------------- 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]