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-27-2004, 05:28 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Missing macro error recovery

Two issues:

if a macro is referenced in the Project Steps, but has not been defined, build fail processing happens but the FAILSTEP_NAME and FAILSTEP_OUTPUT macros are blank.

if a macro is referenced in the Failure Steps, but has not been defined, the build stops and the failure processing is not completed.

The big problem is in the failure step processing because often that is reporting the failure (generally by email for us). A fix would be for VBP to treat all undefined macros in failure step processing as defined but blank. That would generally allow the processing to complete at least.
Reply With Quote
  #2  
Old 04-28-2004, 08:32 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Quote:
if a macro is referenced in the Project Steps, but has not been defined, build fail processing happens but the FAILSTEP_NAME and FAILSTEP_OUTPUT macros are blank.
Good catch. Apparently not too common since it looks like it's always worked this way and you're the first to notice. We'll add it to the fix list.

Quote:
if a macro is referenced in the Failure Steps, but has not been defined, the build stops and the failure processing is not completed...A fix would be for VBP to treat all undefined macros in failure step processing as defined but blank.
Even that wouldn't help much if the To, Server, or other critical fields of the Send Mail action had the undefined macros. You could put the Send Mail step first (or mark all prior failure steps to ignore failure) and hard-code the Send Mail step properties to known good values. Of course, even that can't guard against things like the mail server being down or unavailable. As a backup you could do a NET SEND if the Send Mail step fails.
Reply With Quote
  #3  
Old 04-28-2004, 03:38 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Quote:
Originally posted by kinook
Apparently not too common since it looks like it's always worked this way and you're the first to notice.
I've noticed it before from time to time but it didn't bug me enough to do anything.

Quote:
Even that wouldn't help much if the To, Server, or other critical fields of the Send Mail action had the undefined macros. ...
Yes to all of that, but the chances are better if a blank is used, particuarly as I tend to copy mail steps and just change the message.
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 07:41 PM.


Copyright © 1999-2023 Kinook Software, Inc.