Iván Pérez Domínguez wrote:
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]