Search code examples
javaantinstallationizpack

izpack and build.properties


Does anyone know how to pass build properties to izpack in ANT.

I have a working izpack install in ANT and it works fine but I have to remember to manually put in thing like version number etc.. which are in my build.properties file.

TIA


Solution

  • You can reference Ant properties using the @{} syntax in IzPack install definitions:

    <installation version="1.0">
          <!-- Ant properties in this file can be referenced with @{},
               otherwise use variables below in installer files with ${} -->
          <info>
            <appname>@{product.name}</appname>
            <appversion>@{product.version}</appversion>
            <uninstaller name="remove.task" path="${INSTALL_PATH}/Uninstall" write="yes"/>
          </info>
    ...
    

    Source