Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51821 invoked by uid 500); 11 Aug 2003 12:48:33 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 51761 invoked from network); 11 Aug 2003 12:48:32 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 11 Aug 2003 12:48:32 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.9/8.12.9) with ESMTP id h7BCmTfU011845 for ; Mon, 11 Aug 2003 14:48:29 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id <377KN544>; Mon, 11 Aug 2003 14:48:31 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF6D4E@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: How can I exit from Ant when running my own task? Date: Mon, 11 Aug 2003 14:48:28 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C36006.DCD5B850" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C36006.DCD5B850 Content-Type: text/plain; charset="UTF-8" argh, i have forgotten the simplest possibility :-) Jan > -----Original Message----- > From: peter reilly [mailto:peter.reilly@corvil.com] > Sent: Monday, August 11, 2003 2:49 PM > To: Ant Users List > Subject: Re: How can I exit from Ant when running my own task? > > > Or simply: > throw be; > (this will remember the location of the build exception). > > Peter > > On Monday 11 August 2003 13:39, Jan.Materne@rzf.fin-nrw.de wrote: > > throw a new one? > > > > > > try { > > // a BuildException maybe thrown here > > } catch (BuildException be) { > > // your handling > > throw new BuildException(be); > > } > > > > > > > > Jan > > > > > -----Original Message----- > > > From: Bui Dinh Chien [mailto:ChienBD@fsoft.com.vn] > > > Sent: Monday, August 11, 2003 2:47 PM > > > To: Ant Users List > > > Subject: How can I exit from Ant when running my own task? > > > > > > > > > Hi all, > > > I use Ant task in my own task. > > > In my own task I catch BuildException for Ant task error. > So how can I > > > exit from Ant when Ant task throws BuildException? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > ------_=_NextPart_001_01C36006.DCD5B850--