ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bui Dinh Chien" <Chie...@fsoft.com.vn>
Subject RE: How can I exit from Ant when running my own task?
Date Mon, 11 Aug 2003 12:53:24 GMT
Thanks so much :-)
Chienbui

Or simply:
  throw be;
(this will remember the location of the build exception).

Peter

> throw a new one?
>
>
> try {
>     // a BuildException maybe thrown here
> } catch (BuildException be) {
>     // your handling
>     throw new BuildException(be);
> }
>
> Jan
> >
> > 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?
Mime
View raw message