Use <javac failonerror="false"...>
I cringe just typing that though.
Erik
----- Original Message -----
From: "Zhendi Su" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 6:51 PM
Subject: How to tell ant to keep going if one target fails?
> 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
>
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>