Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 83478 invoked from network); 25 Nov 2001 00:53:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Nov 2001 00:53:29 -0000 Received: (qmail 15372 invoked by uid 97); 25 Nov 2001 00:53:29 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 15356 invoked by uid 97); 25 Nov 2001 00:53:29 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 15345 invoked from network); 25 Nov 2001 00:53:28 -0000 Message-ID: <005801c1754b$948bee40$6401a8c0@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Users List" , References: Subject: Re: Notification of failed builds Date: Sat, 24 Nov 2001 19:53:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 . 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" To: "ant user" 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: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: