Re: Abort build with successful status

2009-06-15 Thread David Weintraub
Can you be more specific what you want to do? In what circumstance do you want to suddenly stop your build process, but consider it a success? Let's say you want to do "A", "B", and "C" as three tasks in a build, can't you simply make them targets with dependencies: "C" depends upon "B" and "B"

RE: Abort build with successful status

2009-06-15 Thread Shawn Castrianni
ssage- From: Matt Benson [mailto:gudnabr...@yahoo.com] Sent: Monday, June 15, 2009 8:14 AM To: Ant Users List Subject: Re: Abort build with successful status Ah, I had already replied similarly before seeing your response, Steve. :) --- On Mon, 6/15/09, Steve Loughran wrote: > From: S

Re: Abort build with successful status

2009-06-15 Thread Matt Benson
Ah, I had already replied similarly before seeing your response, Steve. :) --- On Mon, 6/15/09, Steve Loughran wrote: > From: Steve Loughran > Subject: Re: Abort build with successful status > To: "Ant Users List" > Date: Monday, June 15, 2009, 6:43 AM > You could f

Re: Abort build with successful status

2009-06-15 Thread Matt Benson
--- On Mon, 6/15/09, Shawn Castrianni wrote: > From: Shawn Castrianni > Subject: Abort build with successful status > To: "'user@ant.apache.org'" > Date: Monday, June 15, 2009, 12:18 AM > Is there a way to end a build > prematurely, successfully?  I ca

Re: Abort build with successful status

2009-06-15 Thread Steve Loughran
You could fail but set the exit code to 0. It will still print fail, though that is actually the job of the logger. There's no reason why a custom logger cant skip that fail message if the exit code is 0, or even print out whatever the exception message text is that raises. --

AW: Abort build with successful status

2009-06-15 Thread Knuplesch, Juergen
Hello, I would use from antcontrib to achieve this. Sth.like -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Gesendet: Montag, 15. Juni 2009 07:18 An: 'user@ant.apache.org' Betreff: Abort build with

Re: Abort build with successful status

2009-06-14 Thread Michael Alsen
gt; information for the intended recipient), please contact the sender by > reply e-mail and delete all copies of this message. > > -- View this message in context: http://www.nabble.com/Abort-build-with-successful-status-tp24028937p24029559.html

Abort build with successful status

2009-06-14 Thread Shawn Castrianni
Is there a way to end a build prematurely, successfully? I can use , but then the return value of ant is a failure and it prints out BUILD FAILED, which will make the user think something bad happened. That was not the case. I want to stop a build in certain circumstances and have it be norma