I am trying to exec a shell script like so in ant:
<exec executable="bash" newenvironment="false" dir="./">
<arg value="script.sh">
</exec>
But when it executes the script, all references to environment variables such as $MY_VARIABLE come back as the empty string. How do I get around this? According to http://ant.apache.org/manual/CoreTasks/exec.html I believe the environment should be propogated. (I also realize newenvironment defaults to false.) Thanks,
Edit: I see the env element, bust I don't see a way to pass the environment in en masse. Is there a way to do that?