Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
目标失败时的ApacheAnt调用_Ant - Fatal编程技术网

目标失败时的ApacheAnt调用

目标失败时的ApacheAnt调用,ant,Ant,我试图在另一个目标失败时调用ApacheAnt目标,但我找不到正确的方法 <target name="BookingProcess"> <exec dir="${basedir}" executable="php" failonerror="false"> <arg line="bin/behat --format progress --config features/Desktop/BookingProcess.feature --reru

我试图在另一个目标失败时调用ApacheAnt目标,但我找不到正确的方法

<target name="BookingProcess">
    <exec dir="${basedir}" executable="php" failonerror="false">
        <arg line="bin/behat --format progress --config features/Desktop/BookingProcess.feature --rerun"/>
    </exec>
</target>

<target name="BookingProcessRerun">
    <exec dir="${basedir}" executable="php" failonerror="true">
        <arg line="bin/behat --format progress --config features/Desktop/BookingProcess.feature --rerun"/>
    </exec>
</target>


我只想在BookingProcess失败时调用BookingProcessRerun。

如果手动执行,那么如何确定结果是成功还是失败?基于此,您可能可以读取控制台输出并对其进行解析