ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ron...@echteman.nl>
Subject Re: Handling exceptions with 'ant' task
Date Thu, 06 Mar 2003 23:54:20 GMT
I found this:

www.google.com -> 'ant try catch' -> 
http://ant-contrib.sourceforge.net/ant-contrib/manual/tasks/trycatch.html

Greetings,
Ronald.

On Friday 07 March 2003 00:41, Richard Hill wrote:
> I'm calling a series of ant files that run Canoo tests (see target "test"
> below). If the first test (test1.xml) throws an exception the parent ant
> file stops, which prevent the second test from running.
>
> What I would like to do is have the parent ant script continue on by
> calling test2.xml when an exception occurs in the first test. Or even
> better yet, if the first test throws an exception, run a cleanup task
> before moving on to the next test.
>
> How would I do this in the parent ant script?
>
>
> <project name="Parent Ant Script" default="usage" basedir=".">
>        .
>        .
>        .
>     <!-- Run these Canoo tests -->
>     <target name="test">
>         <ant antfile="test1.xml"/>
>         <ant antfile="test2.xml"/>
>          .
>          .
>          .
>     </target>
>        .
>        .
>        .
> </project>
>
>
> Thanks,
>
> - Richard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

-- 
 Ronald Klop                           http://www.leuk.nl/
 Amsterdam, The Netherlands


Mime
View raw message