Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-26-2004, 12:16 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-15-2003
Posts: 44
Force a failure step

I am calling a DOS batch file, that compiles some code. If the compile succeeds or fails the batch file completes successfully. I have written the step that will check the output and look for the failure.

My question is how can I call a Failure step or force a failure if I determine that my compile did fail by looking at the output? I want to stop the build until the problem can be resolved, but the build runs automaticlly at night.

Thanks

Tom
Reply With Quote
  #2  
Old 04-26-2004, 12:34 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
If the compile step in the batch file returns a non-zero exitcode on failure, VBP will detect that (and fail the build) if you call it like

%DOSCMD% call "drive:\path\to\file.bat"

and you exit the batch file without executing other commands.

As far as forcing a failure, see this FAQ: http://www.kinook.com/Forum/showthread.php?threadid=142
Reply With Quote
Reply


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 06:17 PM.


Copyright © 1999-2023 Kinook Software, Inc.