目标失败时的ApacheAnt调用
我试图在另一个目标失败时调用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
<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。如果手动执行,那么如何确定结果是成功还是失败?基于此,您可能可以读取控制台输出并对其进行解析