Versions Compared

Key

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

...

Code Block
languagetext
titleMyFirstApp.defaults
collapsetrue
INSTALL_PATH=${root.dir}/FirstApp

db.schema=firstapp
db.user=user1
db.password=pass1

Enhancements since IzPack 5.0.11:

There is a special comment block parsed for defining value mappers directly in one and the same file.

All comments between the special comment tags BEGIN MAP and END MAP are interpreted as value mapper classes, for changing the resulting value the installer uses as effective variable override instead of the plain one from the file. The number of mappers between these two lines is unlimited, and if there are more than one, the will be applied like a filter chain - the output of the previous one is used as input for the next one.

Example:

Code Block
languagetext
titleExample
# BEGIN MAP
# com.my_company.installer.data.InternalPasswordMapper
# END MAP
db.password=D5%3gh/p?gg

The according mappers must implement the com.izforge.izpack.api.data.VariableMapper interface.

Scope of defaults

There is a simple behavior in the scope of keys defined in the input file described before - the last definition in the sequence of reading in a set of defaults files "wins".

...