ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Anyone have a Success task?
Date Mon, 14 Nov 2005 08:06:55 GMT
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:jim.lasher@hp.com] 
>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:rhino1@sympatico.ca]
>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" <jim.lasher@hp.com>
>To: "Ant Users List" <user@ant.apache.org>
>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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>-- 
>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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message