Hello,

Would it be possible to add if and unless attributes to the env and arg
elements used in exec, in the same way that include and exclude elements
have? This would make the use of exec more flexible. 

A problem that I currently have is that a script being called from Ant
will check the environment variables. The idea is that it behaves in a
similar way to Ant, in that the behaviour will change depending on
whether a environment property is defined. But I cannot see how to do
this with Ant as <env> elements cannot be conditionally defined. If an
<env> element is added with a given name, that env variable will exist
in the execution environment even if the value is an empty string.

Any suggestions on alternative approaches are appreciated. This could be
done with XSLT but I would rather not introduce that level of
complexity.

paul

Reply via email to