Created
March 9, 2011 18:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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