This is a limitation of Java rather than Ant. See this article for a bit more information: http://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java
I'd recommend that you keep a list of environment variables you care about as properties. When you call <exec /> it has a parameter called <env /> which you can set environment variables for executed stuff. See here for an example: http://ant.apache.org/manual/Tasks/exec.html On 9 May 2012 01:50, Dave Pawson <dave.paw...@gmail.com> wrote: > I know I can read an env variable, but is it possible > to set one, for the duration of the ant script(s) please? > > > > TIA Dave > -- > Dave Pawson > XSLT XSL-FO FAQ. > Docbook FAQ. > http://www.dpawson.co.uk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >