ビルドファイルに次のコードがあります
<target name="foo">
<some stuff>
</target>
<target name="bar" depends="foo">
<some other stuff>
</target>
私がそうするとき、失敗してもターゲットを実行しant barたいです。どうすればいいですか?barfoo
私はant-contribのtry catchを使いたくありません。
Antcontribを検討してください: TryCatch
<target name="foo">
<some stuff>
</target>
<target name="bar">
<trycatch>
<try>
<antcall target="foo"/>
</try>
<catch>
<fail/>
</catch>
<finally>
<some other stuff>
</finally>
</trycatch>
</target>