We need you!


The IzPack documentation needs work, and you are invited to edit it!

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Usage of inheritAll=true for ant variable substitution



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

    <target name="install">
        <izpack input="install.xml"
                izPackDir="${user.home}/IzPack/" />

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

The IzPack task takes the following parameters:
  • 'input': the XML installation file. The installation can be specified as an external file, or embedded using a config child element.
  • 'output': the output jar installer file
  • 'installerType': optional. standard or web. If web, the <webdir> attribute must be specified in the input file. Used to force creation of a standard installer when the <webdir> attribute has been used.
  • 'inheritAll': optional, boolean. If true all properties defined in the ant build process are transmitted to izpack parser for substitution. 

  • 'baseDir': the base directory to resolve the relative paths
  • 'IzPackDir': the IzPack home directory



<property name="jboss.home.url" value="http://www.jboss.com/" />
<!-- Call IzPack with an embedded install using the config element -->
<IzPack output="${dist.dir}/IzPack-install.jar"
<installation version="1.0">
         <author name="JBoss Inc." email="sales@jboss.com"/>


Property references of the form




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