Skip to content

Instantly share code, notes, and snippets.

@laurendavissmith
Created June 27, 2011 17:10
Show Gist options
  • Save laurendavissmith/1049294 to your computer and use it in GitHub Desktop.
Save laurendavissmith/1049294 to your computer and use it in GitHub Desktop.
ANT conditional
<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