<target name="xtest" depends="xyz" description="Additional check">
<exec executable="${xtest.exe}" resultproperty="retVal">
<arg value="123" />
</exec>
<echo>Returned: ${retVal}</echo>
</target>
要成功跳过“ xtest”并显示“ [echo]警告:xtest已跳过”。仅在超过1分钟的时间。 如果在1分钟内“ xtest”失败,则只有过程中断。