Created
June 27, 2011 17:10
-
-
Save laurendavissmith/1049294 to your computer and use it in GitHub Desktop.
ANT conditional
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="-conditional"> | |
<input message="Would you like to do something now?" addproperty="RESPONSE" validargs="y,n" /> | |
<condition property="-cont"> | |
<equals arg1="${RESPONSE}" arg2="y" /> | |
</condition> | |
</target> | |
<target name="-sure" if="-cont"> | |
<echo>You did something!</echo> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment