ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Murcott <si...@flaxx.net>
Subject Re: Set an env variable?
Date Thu, 10 May 2012 03:39:31 GMT
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.pawson@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-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message