Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: ant properties use ${}, not @{}

...

IzPack can be easily integrated inside an Ant build process.

E.g.:

 

Code Block
languagehtml/xml
<?xml version="1.0"?>
<project default="install">
    <path id="build.classpath">
        <fileset dir="${user.home}/IzPack">
            <include name="lib/*.jar" />
        </fileset>
    </path>
    <taskdef name="izpack" classpathref="build.classpath" classname="com.izforge.izpack.ant.IzPackTask" />

    <target name="install">
        <izpack input="install.xml"
                output="IzPack-install.jar"
                installerType="standard"
                basedir="${basedir}"
                izPackDir="${user.home}/IzPack/" />
    </target>
</project>

The above assumes that the IzPack distribution has been installed to ${user.home}/IzPack.

The IzPack task takes the following parameters:

...

Property references of the form

 

@${x}

 

are replaced by the associated x ant property if it is defined.