blob: 0ce6a6ca4f877e14eb69d57e66373eada359da28 [file]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<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>