View Single Post
  #13  
Old 12-18-2009, 10:26 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
When running a program in a Command Prompt, the process exit code is ignored. By default, VBP checks the process exit code and fails the step if it's not zero.

According to the Borland StarTeam 2009 StarTeam Command-Line Tools Help, Exit Codes section (page 38):

"The stcmd commands return exit codes if the -x option is used in the command. The codes are: 0 for success, 1
for failure, 101 if at least one of the specified file patterns did not match, 102 if none of the specified file patterns
matched. The stcmd diff command has an additional option (-e) that returns exit codes. The -e option has three
exit codes (0, 1, and 2) with meanings that are different from those listed above. In addition, the 1 might not be
returned if you don’t also use the -x option."

If it's actually succeeding but returning an exit code of 1, you can either uncheck the Batch mode option on the Global Options tab (to remove the -x option) or mark the step to continue building on failure (More tab). You may also want to report the issue to Borland. You can check the 'Log the command-line...' checkbox on the Advanced tab and rebuild the step to determine and provide the full stcmd.exe command with your support incident.
Reply With Quote