Created
July 6, 2010 00:35
-
-
Save mattupstate/464853 to your computer and use it in GitHub Desktop.
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
<!-- Set's the FLEX_HOME property based on a command line parameter or environment variable. --> | |
<target name="init"> | |
<if> | |
<equals arg1="${FLEX_HOME}" arg2="$${FLEX_HOME}" /> | |
<then> | |
<if> | |
<equals arg1="${env.FLEX_HOME}" arg2="$${env.FLEX_HOME}" /> | |
<then> | |
<fail message="Variable FLEX_HOME does not exist. Set an environment variable or pass Ant a parameter like so: ant -DFLEX_HOME='/sdk/flex/4.1' compile-swf" /> | |
</then> | |
<else> | |
<property name="FLEX_HOME" value="${env.FLEX_HOME}" /> | |
</else> | |
</if> | |
</then> | |
</if> | |
<echo>FLEX_HOME: ${FLEX_HOME}</echo> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment