View Single Post
  #2  
Old 03-08-2004, 03:32 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,032
It appears that VS.NET does not always return a failure exitcode when some project types fail to build. What you could do is add a check in the step's vbld_StepDone script event (click Script Editor from the step properties dialog and go to the Step tab) that fails the build based on the step output. Here's a VBScript version

Function vbld_StepDone()

If InStr(vbld_AllMacros()("LASTSTEP_OUTPUT").Value, " 0 failed") = 0 Then _
Err.Raise 1, Step.Name, "One or more projects failed to build"

End Function


It's not an error condition for the Copy Files action to not copy any files -- the values specified for include/exclude are evaluated as masks which can match zero or more files, and incremental copy may result in no files getting copied even if some match the masks. You could use a Run Program action with a regular %DOSCMD% copy "source" "dest", which will fail if the copy does not succeed.
Reply With Quote