Hi 

 I am not sure about the question , but from what I have understood is
you want to run one task if the previous build fails. There are many
ways to accomplish this but one of the way is to add Build Listener to
your ant file which can do things based on whether you build failed or
passed

Regards
Vishal 
 

-----Original Message-----
From: Russell, Archie [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 28, 2006 5:00 AM
To: 'Ant Users List'
Subject: Advice on making a new task class

 
Hi,

I'm new to Ant and would like to make a new task class.   The examples
I've
online found are good pretty basic, they show an "execute()" method that
seems to be run under all circumstances.   I'd like to make tasks that
are
only rerun if they've failed in the most recent attempt (similar to the
way
a compilation of a file reruns if there is no .class file found).   I
currently have several long running perl programs that are prone to
failure and ant seems like a good way to pick up the pieces after
something breaks.

What is the typical route for accomplishing this with a new task class?
Do
we build a check into the execute() method that looks around for
remnants of the previous task completing succesfully?

Thanks for any advice
Archie


------------------------------------------------------------------------
------
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu) that may be confidential, proprietary
copyrighted and/or legally privileged. It is intended solely for the use
of the individual or entity named on this message.  If you are not the
intended recipient, and have received this message in error, please
notify us immediately by reply e-mail and then delete it from your
system.
------------------------------------------------------------------------
------

---------------------------------------------------------------------
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