Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] User Tips, Tricks and Samples

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-20-2010, 05:00 PM
ShoNuff ShoNuff is online now
Registered User
 
Join Date: 01-20-2010
Posts: 3
Question Get VBP project hierarchy?

I've inherited some VBP Projects that wisely call other modularized VBP Projects. Challenge is starting with the top-level .bld file, and then knowing which .bld's are nested within it.

In a nutshell I need a script to spit out all the steps (and some properties) in order whether the step be in the parent build, a child build, a grandchild...and so on. Something that without execution of all the logic, just puts my steps into a flat view without having to actually run the build (since the build can take 3-4 hours and/or fail to complete).

The "Log all steps and properties" script in the Script.bld sample file does an awesome job of it...but I need it to chase down all child builds as well.

Also tried this shortcut, but it put the steps at the end and requires I know which files are needed in advance.
http://support.microsoft.com/kb/286817


Before I dust off my VBScript gloves, does anyone else have this same need and/or a solution already available?

Thanks!
Reply With Quote
  #2  
Old 01-20-2010, 07:06 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,656
See the logsteps.bld sample three threads down.

You can also select a VisBuildPro Project step and choose View | Shell | Launch on the menu (Ctrl+Shift+L) to navigate to a child project.
Reply With Quote
  #3  
Old 01-21-2010, 03:23 PM
ShoNuff ShoNuff is online now
Registered User
 
Join Date: 01-20-2010
Posts: 3
Talking awesome

Thanks - exactly what I asked for and thanks for posting so quickly.

I can also take this framework and just add/remove properties I want to see or do my own formatting.

Will save us hundreds of man hours directly and indirectly over time.

Thanks for the tip on launching child builds through the shell launch...have been using that one a lot but the flat view helps put all the pieces together into something digestible (especially those without access to or familiarity with VBP).
Reply With Quote
  #4  
Old 02-23-2010, 12:55 PM
ShoNuff ShoNuff is online now
Registered User
 
Join Date: 01-20-2010
Posts: 3
Question save this as a .bld file?

so if I wanted to adapt this to consolidate all the child builds into one master project .bld file, are there any caveats there...or is it just copying the step object as XML instead of logging out all the properties to text? Any tips on doing that?

I've already adapted this a couple times to just pull out certain types of steps and fill-in macro values for me that would've normally been tedious to cross-reference (or require me to run the build and debug). Can see lots of ways to re-use the framework of the original script provided - thanks.
Reply With Quote
  #5  
Old 02-23-2010, 05:30 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,656
Here is the sample mentioned above.
Attached Files
File Type: bld logsteps.bld (2.2 KB, 987 views)
Reply With Quote
  #6  
Old 02-23-2010, 05:40 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,656
And here is a sample that combines a project and all chained projects. This may require some tweaking for proper indenting with multiple levels of chaining.
Attached Files
File Type: bld combine.bld (2.0 KB, 958 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 10:43 AM.


Copyright 1999-2019 Kinook Software, Inc.