On 10 May 2012 04:39, Simon Murcott <si...@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


Further to this, using DITA I see

<project name="ditaot-init" basedir=".">
        <property name="maxJavaMemory" value="500m"/>

Is this some sort of max constraint?

regards

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



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

Reply via email to