My 1st thought was: why that?
But ok, if you want to have that, here more thoughts :-)

<fail> is implemented in Exit.java [1]. Basically it throws an Exception.
Therefore Ant itself lets the build fail a custom task couldnt force Ant to 
quit the build AND print "successful".

Jan


[1] 
http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exit.java?view=markup
 

>-----Ursprüngliche Nachricht-----
>Von: Lasher, James L [mailto:[EMAIL PROTECTED] 
>Gesendet: Sonntag, 6. November 2005 00:39
>An: Ant Users List
>Betreff: RE: Anyone have a Success task?
>
>Thanks for your reply.  Actually what I'm looking for is a 
>task which forces (sends) a build to stop and be reported as 
>successful as the fail task will force a build to stop and 
>report a failure.
>
>-jim-
>
>-----Original Message-----
>From: Rhino [mailto:[EMAIL PROTECTED]
>Sent: Saturday, November 05, 2005 4:36 PM
>To: Ant Users List
>Subject: Re: Anyone have a Success task?
>
>I'm not sure what you mean.
>
>I have two directories of  .wav files; one directory contains 
>"success sounds" while the other contains "fail sounds". At 
>the start of each Ant build script, I have an import that 
>loads a <sound> task; this task plays a "success sound" if the 
>build works or a "fail sound" if it doesn't. It works very 
>well and I might be prepared to share it with others in the 
>Ant community.
>
>Is that what you're looking for?
>
>Rhino
>
>----- Original Message -----
>From: "Lasher, James L" <[EMAIL PROTECTED]>
>To: "Ant Users List" <[email protected]>
>Sent: Saturday, November 05, 2005 4:44 PM
>Subject: Anyone have a Success task?
>
>
>I'm looking for a task to do the opposite of the provided <Fail> task
>(end the build with a BUILD SUCCESSFUL).  I tried writing a custom task
>to fire a buildFinished event, but wasn't exactly successful.
>
>Thanks.
>-jim-
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date:
>03/11/2005
>
>
>
>
>-- 
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date:
>03/11/2005
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to