Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The attributes file, prefix and environment have been broken in 5.0 at the beginning, they are fixed in IzPack 5.0.11

Understanding Properties

IzPack properties are key-value pairs that can be used for substitution during the compilation phase, only. The scope makes the difference to variables, which are evaluated and can be seen also during the installation phase. IzPack properties will not be visible during the execution of the compiled installer. Properties have been thought to be a clearly visible compile-time "variable" in IzPack XML descriptors with a different notation.

...

Note

There are two ways to define a property in Maven:

  1. Defining <properties> inside pom.xml like in the example above.
  2. Setting a user property on the commandline with "-Dproperty=value".

They are handled different in the Maven plugin:

  • In IzPack 5.0 only the definitions in pom.xml are recognized by the installer.
  • Starting with version 5.0.9 these static properties can be overwritten with the value given as user property on the command line:
    Jira Legacy
    serverJIRA (izpack.atlassian.net)
    serverId4741b2e0-e7d5-3853-84a7-22db1abe3b3c
    keyIZPACK-1400
  • Properties defined as user property only without a definition in pom.xml are not available to the installer. This is discussed in JIRA, because it could break existing installers:
    Jira Legacy
    serverJIRA (izpack.atlassian.net)
    serverId4741b2e0-e7d5-3853-84a7-22db1abe3b3c
    keyIZPACK-1402
Info

The attributes file, prefix and environment have been broken in 5.0 at the beginning, they are fixed in IzPack 5.0.11

Reading/Substituting Properties

...