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 01-31-2007, 04:53 PM
Lonnie Lonnie is online now
Registered User
 
Join Date: 01-31-2007
Location: Florida
Posts: 4
Configuration File

Is there a way to put all of the settings for a build into a file, then have the build refer to that file when executing?

And if so, what is the prefered method?

Take the following information for instance:

BuildNumber = 1234
Label = true

I have seen examples on how to prompt the user for this type of information, or for the user to enter it manually, but haven't seen an example on how to retrieve it from a file.

Having it retrieved from a file allows us to schedule a silent build.

Thanks.
Reply With Quote
  #2  
Old 02-01-2007, 07:16 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
There are several ways to accomplish that (the preferred method would probably depend on your needs). Some are described here:
http://www.visualbuild.com/Manual/hints.htm

One way would be to pass them on the command-line to VBP:
http://www.visualbuild.com/Manual/consoleapp.htm
http://www.visualbuild.com/Manual/command_linegui.htm
in a batch file, then call the batch file in the scheduled task

Another way would be to create them as temporary macros
http://www.visualbuild.com/Manual/macrostab.htm

and save those to a file via a Run Script (VBScript) step like:

Code:
Application.Macros(vbldMacroTemporary).Save "%PROJDIR%\name.macros"
Then, at the start of your project, load the temporary macros:

Code:
Application.Macros(vbldMacroTemporary).Load "%PROJDIR%\name.macros"
http://www.visualbuild.com/Manual/runscript.htm
http://www.visualbuild.com/Manual/objectmodel.htm

Either way, those macros could then be referenced in your project (i.e., %MACROA%) as needed.

You can also use the technique shown in the VisBuildPro.bld sample to define defaults as project macros, and override those via temporary macros as needed.
http://www.visualbuild.com/Manual/visbuildprosample.htm
Reply With Quote
  #3  
Old 02-07-2007, 09:30 AM
Lonnie Lonnie is online now
Registered User
 
Join Date: 01-31-2007
Location: Florida
Posts: 4
Thanks! This is the answer I was looking for.
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 12:40 PM.


Copyright © 1999-2023 Kinook Software, Inc.