Persisting a --setvars variable upon installation


1 comment

  • Avatar

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

        <stringParameter name="app_version" value="" ask="0"/>

    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.