ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: AW: Quiet output
Date Thu, 12 Oct 2006 11:34:11 GMT
Iván Pérez Domínguez wrote:
> Jan.Materne@rzf.fin-nrw.de wrote:
>> Set the environment variabe ANT_OPTS to "-emacs" or "-quiet".
>>
> Thanks, that was a great starting point. Actually, the name of the
> variable is ANT_ARGS.
> 
> OK, now my question has turned into "How can I set an environment
> variable from inside an build.xml file?"
> 
> I tried this:
> 
> <property environment="env" />
> <target name="test">
>    <property name="env.ANT_ARGS" value="-quiet -emacs" />
>    <ant dir="tests" />
> </target>
> 
> But it didn't work. Any idea?


no, that wont work. you can only set the env variable for a child 
process, including java and junit -i.e. tasks with an <env> element. 
But <ant> is not a process.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message