Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 86281 invoked from network); 3 Feb 2004 18:59:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Feb 2004 18:59:11 -0000 Received: (qmail 36147 invoked by uid 500); 3 Feb 2004 18:58:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 36096 invoked by uid 500); 3 Feb 2004 18:58:21 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 36004 invoked from network); 3 Feb 2004 18:58:20 -0000 Received: from unknown (HELO moon.cyc.com) (207.207.8.27) by daedalus.apache.org with SMTP; 3 Feb 2004 18:58:20 -0000 Message-ID: <401FEF4E.4030300@cyc.com> Date: Tue, 03 Feb 2004 12:58:22 -0600 From: Tony Brusseau MIME-Version: 1.0 To: user@ant.apache.org Subject: Question about failonerror Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm currently getting up to speed in ant and am in the middle of writing my first complex ant build file. I've encountered one stumbling block that maybe someone can help with. I just wrote a target that calls junit and has different behaviors depending on whether of not junit succeeded. To do this I used the following attributes: haltonfailure="off" failureproperty="test-failed" I'd like to have the same behevior for compling, cleaning, "cvsing", installing, etc. However I only find the failonerror attribute on these tasks. This will allow me not to fail when they break, but how exactly do I know when I've failed vs succeeded at the task and how can I get ant to do different things based on this information? Does failonerror set a property when the tasks fails? I could not find any documentation on this. Thanks for any help, Tony Brusseau Cycorp, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org