...
Attribute | Description | Required | Values |
---|---|---|---|
| Relative or absolute target path of a pack file added before, where variables should be resolved in place. May contain IzPack variables resolved during installation. Example: | (required, if no nested fileset is used) | File path |
| Specifies the text file type:
| no |
|
| The file encoding | no | A valid Java encoding string |
| Limits this action on a particular OS, works like for | no |
|
| Limits this action on a particular condition with the specified ID which has to be fulfilled | no |
|
...
Attribute | Description | Required | Values | ||
---|---|---|---|---|---|
| Relative or absolute target path of a pack file added before, which should reeceive executable permissions or which should be executed. May contain IzPack variables resolved during installation. Example: | yes | A previously added pack file | no | File path |
|
| no | "bin" | "jar" | ||
| If the executable is a jar file, this is the class to run for a Java program | no | A valid Java class within the jar file | ||
| Specifies at which stage when to launch the executable:
| no | "never" | "postinstall" | "uninstall" | ||
| specifies what to do when an error occurs:
| no | "ask" | "abort" | "warn" | "ignore" | ||
| specifies the operating system, works like for | no |
| ||
| Whether the file will be kept after execution | no | "true" | "false" | ||
| ID of a condition which has to be fulfilled to execute this file | no | A valid condition ID |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<langpack> <str id="myApplication" txt="Main Application"/> <str id="myApplication.description" txt="A description of my main application"/> </langpack> |
Example
Code Block | ||
---|---|---|
| ||
<pack name="Core files" required="yes" id="pack.core" condition="Install">
<description>Core files</description>
<fileset dir="@{staging.dir}" override="true">
<exclude name="*.zip" />
<exclude name="conf/*.properties" />
<exclude name="conf/*.xml" />
</fileset>
<fileset dir="@{staging.dir}/config_files" targetdir="${INSTALL_PATH}/conf" override="true" overrideRenameTo="*.configbak">
<include name="*.properties" />
<include name="*.xml" />
<exclude name="special.xml" />
</fileset>
<parsable encoding="UTF-8">
<fileset targetdir="${INSTALL_PATH}/conf">
<include name="wrapper.conf" />
</fileset>
</parsable>
<parsable>
<fileset>
<include name="**/*.bat" />
<include name="**/*.cmd" />
</fileset>
</parsable>
<parsable type="shell">
<fileset>
<include name="**/*.sh" />
</fileset>
</parsable>
<executable>
<fileset>
<include name="**/*.sh" />
</fileset>
</executable>
</pack> |
The dir attribute should no longer been parsed in <fileset> nested to <executable>, <parsable> at all.