ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How can I exit from Ant when running my own task?
Date Mon, 11 Aug 2003 12:48:28 GMT
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
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message