#1
|
|||
|
|||
StepStarted event not behaving as documented
According to the documentation (see http://www.kinook.com/VBP/Manual/ind...riptevents.htm), we are told “The StepStarted and StepDone events fire even if the step is skipped. Use conditional logic (VBScript syntax) like If Step.BuildStatus <> vbldStepStatSkipped Then ... to perform event logic only if the step was not skipped.”
I am handling the vbld_StepStartedProject() and I can tell you from experience that Step.BuildStatus is never vbldStepStatSkipped, even if the step is skipped. The only way I can find out if it is skipped is through the vbld_StepDoneProject event. Step.BuildStatus is correct in the StepDone event. Here’s a snippet from my vbld_StepStartedProject() handler: If Step.BuildStatus = vbldStepStatSkipped Then ' return now -- this step was skipped Exit Sub End If Am I doing something wrong or is the documentation wrong? Last edited by Dave_Novak; 08-03-2006 at 05:42 PM. |
#2
|
|||
|
|||
The documentation is wrong (the status in the started event was not indicating skipped). This issue has been addressed in the v6.2 beta by not firing the started/done events for steps that are skipped. See here for more details on the beta:
http://www.kinook.com/Forum/showthre...?threadid=1973 |
#3
|
|||
|
|||
That is definitely the way it should be handled. I can't wait for 6.2 to be released . . . for many reasons. Any ETA until gold? I think I'll now take a look at the beta.
Thanks! |
#4
|
|||
|
|||
Release Candidate would probably be more fitting. It's pretty solid, but we'd rather be proven wrong now than after the official release.
|
|
|