ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: How to tell ant to keep going if one target fails?
Date Wed, 30 Jan 2002 23:56:09 GMT
Use <javac failonerror="false"...>

I cringe just typing that though.

    Erik



----- Original Message -----
From: "Zhendi Su" <rachael.su@oracle.com>
To: <ant-user@jakarta.apache.org>; <ant-dev@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message