Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 73302 invoked from network); 6 Mar 2003 23:41:00 -0000 Received: from exmc01.classmates.com (HELO exmc01.cm.cmates.com) (65.197.174.116) by daedalus.apache.org with SMTP; 6 Mar 2003 23:41:00 -0000 Received: by exmc01.cm.cmates.com with Internet Mail Service (5.5.2653.19) id ; Thu, 6 Mar 2003 15:40:13 -0800 Message-ID: <1992288E15AA5F4FA866DCF4F318465401CB37A4@ursamajor.cm.cmates.com> From: Richard Hill To: "'user@ant.apache.org'" Subject: Handling exceptions with 'ant' task Date: Thu, 6 Mar 2003 15:41:05 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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