How to set variables at build time

Author: BitRock Support       Date: April 25, 2008 07:46       Tags: Installer environment variables
Build
Installer Variables
builder

Sometimes it is convenient to set project variables at build time. There are a couple of ways that this can be accomplished:

Use the preBuildActionList:

  <preBuildActionList>
    <setInstallerVariable name="version" persist="1" value="${env(BUILDVER)}"></setInstallerVariable>
  </preBuildActionList>

Or, starting with 5.4.6, it is possible to pass variables directly in the command line to the builder

$ builder build project.xml --setvars version=1.2.3 project.shortName=newShortName project.fullName="New Installer Name"


 

Back You should login to comment

 

You are
currently not
logged in.

 Log in 

or

Sign up