| <?xml version="1.0" encoding="UTF-8"?> |
| <project |
| name="checkSystemPrereq" |
| default="checkSystemPrereq" |
| basedir="."> |
| |
| <fail |
| unless="commandName" |
| message="Must provide the commandName to run"/> |
| <fail |
| unless="arguments" |
| message="Must provide the command arguments to run"/> |
| |
| <target name="checkSystemPrereq"> |
| |
| <exec |
| executable="${commandName}" |
| resultproperty="returnCode" |
| errorproperty="errorCode" |
| outputproperty="output" |
| failifexecutionfails="false" |
| failonerror="false"> |
| <arg line="${arguments}"/> |
| </exec> |
| |
| <fail unless="returnCode" message="**** Build failled: cannot execute ${commandName} ****"/> |
| </target> |
| </project> |