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"
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
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
--- 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 can use , but
> then the return value of a
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.
--
Instaed of calling you could call a target e.g.: .
Shawn Castrianni wrote:
>
> 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
>