ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kw...@i2.com>
Subject Re: How to tell ant to keep going if one target fails?
Date Thu, 31 Jan 2002 03:55:24 GMT
Well, if they are unrelated packages, they should
each have their own XML file so each can be compiled
separately.

If they are related, i.e dependent, that this behavior
is as designed. No point in compiling packages that depend
on a failed compile.

Zhendi Su wrote:
> 
> 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-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>

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


Mime
View raw message