我有一个Ant目标,按顺序执行2个步骤:
<target name="release"> <antcall target="-compile"/> <antcall target="-post-compile"/> </target>
使用上面的脚本,如果“-compile”目标失败,它会立即退出. “-post-compile”没有机会运行.有没有办法确保第二步(-post-compile)执行即使第一步(-compile)失败?
我想你在找-keep-going(-k)
这将告诉Ant继续构建所有不依赖于失败目标的目标.
精彩评论