Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-12-2005, 08:10 PM
stephen_gryphon stephen_gryphon is online now
Registered User
 
Join Date: 07-12-2005
Posts: 1
Question Passing original command line environment to child builds

G'day,

We have recently started implementing Visual Build Pro in our organisation.

When running the tool we are using the command line options to choose the location of the various global files (macros, steps, scripts etc.).

This works fine for the project loaded.

We then use a VisualBuildPro Project step to run a child build project, however the correct environment (i.e. location of the global files) is not transferred across.

Turning on logging for the command line, it looks like the options are not being added. (i.e. it always uses whatever the configured default locations are).

From the documentation, I see we can specify additional command line options in the step, but I don't know where to get this information from.

What I would like to know, however, is how do I access the location of the global files that was passed on the command line to the main build.

Basically, we want the child build to operate in the same environment (i.e. same global locations) as the main build was started with.

Thanks,

- Stephen Gryphon
Reply With Quote
  #2  
Old 07-12-2005, 10:42 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
You access these values via script, you would pass the values through to the child build like so in the VisBuildPro Project action's additional options field (on the Parameters tab):

/options "[Application.Options.Name]" /macros
"[Application.Macros(vbldMacroGlobal).Name]" /steps
"[Application.Project.Steps(vbldStepGlobalSubroutine ).Name]" /script
"[Application.Scripts(vbldScriptGlobal).Name]"

Another option would be to bootstrap the process by setting the registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Kinook Software\Visual Build Professional\ConfigFilesPath" to the path containing your config files (this could be accomplished by a two-step VBP project to set the registry value and then chain to the main .bld project). Then the values would not have to be passed on the command-line at all. See http://www.kinook.com/Forum/showthread.php?threadid=36 for more details.
This would require that all your config files be in the same location.
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 11:01 AM.


Copyright © 1999-2023 Kinook Software, Inc.