To be explicit, if you only need to set environment variables for the duration of the Ant build, you will presumably be using the <property environment="prefix" /> task. Then you can, in a way, set environment variables for use in the build. If you want to override the environment setting for a property "ABC", for example, merely specify <property name="prefix.ABC" value="value" /> prior to the <property environment="prefix" /> task. If you want the environment setting to take precedence, reverse that order. The immutability of properties inherent in Ant will set precedence accordingly.
-Matt --- Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > - In the exec task, it is possible to set > environment variables as nested > elements. > > http://jakarta.apache.org/ant/manual/CoreTasks/exec.html > > - I don't know if ant can change its own set of > environment variables while > running. > If you are making a build file where a number of > tasks are going to require > some environment variables, > maybe you should make a wrapper shell script for > your build file which sets > the environment variables. > > Yours > > ----- Original Message ----- > From: "Klara Ward" <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, January 07, 2003 5:35 PM > Subject: Setting environment variables with ant? > > > > Is it possible to set environment variables with > ant? > > > > /klara > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
