Orangevolt ANT Tasks » Tasks » execute | ||
execute | Unix related tasks |
The example asks for the tomcat home only if the environment variable TOMCAT_HOME is undefined.
build.xml |
|
... |
<target name= "checkup" > |
<!-- verify TOMCAT_HOME enviroment variable --> |
<execute if= "${env.TOMCAT_HOME}" > |
<property name= "tomcat" value= "${env.TOMCAT_HOME}" /> |
</execute> |
|
<execute unless= "tomcat" >
|
<input addproperty= "tomcat" > |
|
|
|
</input>
|
</execute> |
<fail unless= "tomcat" > |
|
</fail> |
<!-- --> |
</target> |
... |