ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: How can I exit from Ant when running my own task?
Date Mon, 11 Aug 2003 12:49:11 GMT
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
View raw message