ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Using 2 versions of JAVA_HOME through one build script
Date Thu, 26 Jan 2006 05:01:50 GMT
On Wed, 25 Jan 2006, Srikrishna Parthasarathy
<Srikrishna_Parthasarathy@timeinc.com> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message