Take it up on the ant-dev list, but I'd recommend you search the archives a
bit to see the discussions on this often requested feature just to get some
background before jumping in.  :)

I personally haven't had any need for such a feature.

More questions: what exactly would you have your special failure target do?
would it need to know where the build failed to do anything special?  or
just e-mail the failure generically regardless of the reason?

    Erik


----- Original Message -----
From: "Kurien Mathew" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Saturday, November 24, 2001 8:20 PM
Subject: RE: Notification of failed builds


> > folks, for reasons like: what happens if the failure target fails?
>
> Exit gracefully.
>
> I believe that the feature should be available since such situations not
> uncommon in software systems.
>
> Personally I would prefer to avoid Java listeners since they themselves
> would require building and maintenance, both avoidable overheads.
>
> Kurien
>
> >
> > It certainly is technically possible, but this has been rejected
> > by the dev
> > folks, for reasons like: what happens if the failure target fails?
> >
> > A listener is the right place, currently, for such things.  Eventually
it
> > will be possible to attach a listener from within the build file (and
you
> > 'almost' can already with <record>. but not quite like what you desire).
> >
> > If you wanted to get real tricky, you could create a listener that upon
> > failure fired a failure target!  :)  But you'd have to deal with
whatever
> > potentially ugly issues could come up from doing such a thing and I'm
not
> > sure what kinds of things get destroyed before the listener gets
> > notified of
> > a failure.
> >
> >     Erik
> >
> >
> > ----- Original Message -----
> > From: "Kurien Mathew" <[EMAIL PROTECTED]>
> > To: "ant user" <[EMAIL PROTECTED]>
> > Sent: Saturday, November 24, 2001 3:14 PM
> > Subject: Notification of failed builds
> >
> >
> > > Would it be possible to have Ant execute a user-specified
> > target whenever
> > > build fails? This I guess would be simpler than having to attach a
> > listener
> > > written in Java.
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to