ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Pawson <dave.paw...@gmail.com>
Subject Re: Set an env variable?
Date Thu, 10 May 2012 06:46:05 GMT
On 10 May 2012 04:39, Simon Murcott <simon@flaxx.net> wrote:
> 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

Thanks Simon.
  More reading.  Your first point is clear though.

regards



>
> 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
>>
>>



-- 
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
View raw message