In reading the manual, I don't see any reason, subtle or not why I should
use one over the other.
In additon I found this to be not true
Parameters specified as nested elements
...
env
...
Please note that the environment of the current Ant process is NOT passed to
the system command if you specify variables using <env>
I did insert this line
<env key="XX" value="see no evil"/>
just to see if the environment is preserved: it is, all the environment
variables exist in the subprocess and have the same values.
|