Persisting a --setvars variable upon installation

Comments

1 comment

  • Avatar
    juanjo

    Variables defined at build-time are not available at run-time. The usual solution for this is to define a hidden parameter:

    <project> 
      ...
      <parameterList>
        <stringParameter name="app_version" value="" ask="0"/>
      </parameterLis>
      ...
    </project>
    

    But in your case, as you are just using the variable to configure a project setting, you could just configure it directly:

    builder-cli.exe build Communicator.xml windows ... --setvars project.version=${env(APP_VERSION)} ...
    

Please sign in to leave a comment.