www.icetips.com  Icetips Utilities Documentation 11/30/2010    

SetupBuilder Class: BuildCommandLine

Previous  Top  Next  


Prototype: (String pBaseCommandLine),String

 

pBaseCommandLineContains the path and name of the SetupBuilder executable and the path and the name of the SetupBuilder project to compile.

 

ReturnsReturns the full command line to execute

 

This method builds up a command line to compile the project.  The basic command line that is passed to it contains the SetupBuilder executable and the project to compile, like:

 

ShortPath(SELF.SBExecutable) & ' /C "' & ShortPath(SELF.SBProjectToCompile) & '"' 

 

Optionally compiler variables can be added to the commandline by using the AddCompilerVariable method.  A destination folder can also be specified, but it is optional.  If no destination folder is specified, it is constructed by using the project file path and name in the same manner as SetupBuilder does it.  This method is called automatically by the CompileSBProject

 

Please note that the command line length is limited and varies depending on what operating system is in use.  There is a basic length checking mechanism built into this method and if the command line exceeds the maximum allowed by the operating system, the CompileSBProject terminates and returns -2 to the calling code. 

 

 

See also:

AddCompilerVariable

CompileSBProject

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/buildcommandline_setupbuilder.htm