ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhendi Su <rachael...@oracle.com>
Subject How to tell ant to keep going if one target fails?
Date Wed, 30 Jan 2002 23:51:38 GMT
Hi,

I am using ant to compile several packages.  I notice that if ant
encounters error in compiling one package it will stop.  So how do I
tell ant to keep going if one target fails?

part of my build.xml looks like:

<target name="target1">
<javac srcdir="dir1" destdir="mydir" />
</target>

<target name="target2">
<javac srcdir="dir2" destdir="mydir" />
</target>

<target name="target3">
<javac srcdir="dir3" destdir="mydir" />
</target>

So if target1 fails, is there any way to tell ant to jump to target2 and
target3?  Thanks  a lot!

Zhendi Su


Mime
View raw message