Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Created March 9, 2011 18:49
Show Gist options
  • Save jeffgca/862718 to your computer and use it in GitHub Desktop.
Save jeffgca/862718 to your computer and use it in GitHub Desktop.
A snippet for how to run a shell script via bash in ant. This can be helpful in adding environment variables to your ant build when executed in a strange environment like a Jenkins build.
<target name="phpunit">
<exec dir="${basedir}" executable="bash" newenvironment="false" failonerror="true">
<arg value="somescript.sh"/>
</exec>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment