在这里,我在 Maven 中遇到了类似的问题
.....
<tasks>
<exec executable="subst" failonerror="false">
<arg line="f: c:\blabla"/>
</exec>
////// here the execution I try to make!
<exec executable="subst" failonerror="false" if=//before execution fails!>
<arg line="g: c:\blabla"/>
</exec>
<tasks>
我无法想象在另一个命令失败的情况下如何运行命令。
谢谢你的帮助