How to access installer variables in custom java code ?

Comments

1 comment

  • Avatar
    wojciechka

    In order to pass information to your Java applications, you can pass variables you need as arguments when running the Java code - for example:

    <runProgram>
        <program>jre/bin/java</program>
        <programArguments>-jar test.jar --username "${username}" --password "${password}"</programArguments>
        <workingDirectory>${installdir}</workingDirectory>
    </runProgram>

    You can access ${program_stdout} and ${program_stderr} variables from InstallBuilder to set variable as a result of running Java.

Please sign in to leave a comment.