Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   VisBuildPro.exe exit code (https://www.kinook.com/Forum/showthread.php?t=2631)

snutt 05-19-2007 06:14 PM

VisBuildPro.exe exit code
 
I have a VisualBuildPro script that calls another VisualBuildPro script. When the inner script fails, how can I get it to return a non 0 return code? It always seems to return 0 even when I have an Exit step in it that sets the exit status to Failure.

The script is being called without silent mode set, allowing us to interact with the script for debugging purposes. For this reason, the exit step has the Continue building checkbox checked.

I'm using version 6.2a, but would be happy to upgrade to 6.3 if that would help.

Many thanks,

Steve

kinook 05-21-2007 11:47 AM

Don't check the 'Continue building' step option of the Exit step (I guess it could be considered a bug that an Exit step configured in this way actually exits the build [rather than continuing], but it doesn't sound like that would help your situation anyway). You can still debug the child build instance without using that option (just close the child instance after the build stops at the failure).

If you sometimes want to debug the child project but other times want the child build to exit on build failure, use a field override (triggered from a temporary macro, for instance) for the 'silent mode' option.
http://www.visualbuild.com/Manual/ac...ldoverride.htm

snutt 05-21-2007 12:10 PM

Many thanks. The overrides looks like it will be a suitable workaround, (and perhaps useful in some other places for us.)

Steve


All times are GMT -5. The time now is 10:13 PM.


Copyright © 1999-2023 Kinook Software, Inc.