ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Kodungallur" <>
Subject Re: Skipping failed tasks
Date Tue, 22 Oct 2002 16:58:43 GMT
You can use the <trycatch> task from ant-contrib. It lets you do 
try/catch/finally just like in java. you can put a trycatch around 
each of your tasks and it should work just fine for you.

you can find ant-contrib from

i guess you will have to checkout the code and build the 
ant-contrib library


On Tue, 22 Oct 2002 Nicolae Cismaru wrote :
>Giving the following target, is it possible to execute all the 
>tasks even if the 1st or the 2nd fail?
><target name="javadoc"
>            description="Javadoc for the application.">
>    <ant antfile="build.xml" dir="${MUSE_HOME}" 
>    <ant antfile="build.xml" dir="${MUSE_HOME}/admin" 
>    <ant antfile="build.xml" dir="${MUSE_HOME}/http" 
>Reading the code, I've seen that if a BuildException occurs when 
>a target is executed then Ant exits to the system.
>So, is it a way to solve this problem?

Give your Company an email address like
ravi @  Sign up for Rediffmail Pro today!
Know more.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message