Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-22-2006, 04:42 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Hmmm, it was always documented and designed that the failed step info be available only from failure steps (if it did work, it was only incidental). What sort of additional reporting are you doing in this situation (if a step does fail but that condition is ignored, the failure information and status is already logged automatically)?

Some options:

1a) If all you're doing is writing extra info to the log, you can do that in the step's vbld_StepDone script event (of the step whose failure would be ignored):

Code:
If Step.BuildStatus = vbldStepStatFailed Then
   Builder.LogMessage "Error building step " & Step.Name ' etc.
End If
http://www.visualbuild.com/Manual/scriptevents.htm

1b) Centralize this logging in the global vbld_StepDoneProject script event (instead of for each step whose failure is ignored):

Code:
If Step.ContinueOnFailure And Step.BuildStatus = vbldStepStatFailed Then
   ' log failure info
End If
2) If you're using extra steps for this failure reporting (for instance, to send mail, etc.), configure the steps to build some failure steps (for instance, a failure subroutine called Report Failure) to report the additional info but continue building, rather than utilizing the failed step info from Project steps (this might also simplify your code if you have multiple steps that you're checking and reporting failure for).
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:22 PM.


Copyright © 1999-2023 Kinook Software, Inc.