Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 54065 invoked from network); 8 Mar 2003 00:41:20 -0000 Received: from exmc01.classmates.com (HELO exmc01.cm.cmates.com) (65.197.174.116) by daedalus.apache.org with SMTP; 8 Mar 2003 00:41:20 -0000 Received: by exmc01.cm.cmates.com with Internet Mail Service (5.5.2653.19) id ; Fri, 7 Mar 2003 16:40:23 -0800 Message-ID: <1992288E15AA5F4FA866DCF4F318465401CB37AB@ursamajor.cm.cmates.com> From: Richard Hill To: 'Ant Users List' Subject: RE: Handling exceptions with 'ant' task Date: Fri, 7 Mar 2003 16:41:27 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I also doesn't seem to recognize 'antcall' either. The exception just gets passed to the antcall target. -----Original Message----- From: Richard Hill [mailto:RHill@classmates.com] Sent: Friday, March 07, 2003 3:20 PM To: 'Ant Users List' Subject: RE: Handling exceptions with 'ant' task Thanks, this is exactly what I'm looking for! Although, I'm not able to pass a property from the parent ant script to the cleanup ant script I call in the catch block...how would I do this using the Antelope 'Try' task? . . . . . . . . -----Original Message----- From: Dale Anson [mailto:danson@germane-software.com] Sent: Thursday, March 06, 2003 3:58 PM To: Ant Users List Subject: Re: Handling exceptions with 'ant' task See the try/catch/finally task packaged with Antelope (http://antelope.sourceforge.net). Then you can do: . . . . . . . . . The break="no" means to continue with test2 even if test1 fails, which is handy for what you are doing. The catch block will execute for each failed task. Documentation for the "try" task is at: http://antelope.sourceforge.net/manual/bk03ch07.html Dale Anson 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? > > > > . > . > . > > > > > . > . > . > > . > . > . > > > >Thanks, > >- Richard > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org