It does cause the build to fail.

There are specific tasks that I would like to know if they passed or
failed.  If I use the nant.onfailure, I won't know which target to
record as failing.  I guess I could keep a property that keeps track of
the last task that was being attempted, so I can write it as a failure
to the database.

Does that seem like the best way to do it?

-----Original Message-----
From: Merrill Cornish [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 12, 2004 7:28 PM
To: Young, Jason (GE Infrastructure); [EMAIL PROTECTED]
Subject: Re: [Nant-users] Best way to record step fail/success status

If one of your steps fails, does that cause the build to fail?  If so,
then you can use the nant.onfailure property to specify a "cleanup"
task, which will only be run after the main build if finished.  In your
case, that cleanup task would write the fail record to the SQL database.

Merrill


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to