...
| The name of the pack that this one depends on |
<os>
- OS Restrictions
It is possible to restrict a pack to a certain list of operating systems. This tag takes the following attributes:
| unix, windows or mac |
| the exact OS name (ie Windows, Linux, ...) |
| the exact OS version (see the JVM os.version property) |
| the machine architecture (see the JVM os.arch property) |
<updatecheck>
- Cleaning Up After Updates
...
Attribute | Description | Required | Values |
---|---|---|---|
| the file to parse, could be something like | yes |
|
| 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 |
|
Nested Elements
...
- <os> - restrict parsing depending on the target operating system, see the OS Restriction element
<executable>
- mark file as executable and optionally execute it
...
Attribute | Description | Required | Values |
---|---|---|---|
| the file to run, could be something like | yes | A previously added pack 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 |
Nested Elements
...
- <os> - restrict parsing depending on the target operating system, see the OS Restriction element
- <args>
Pass one or more arguments with nested <arg> tags (one<arg>
tag per argument) to the executable
...
Attributes: value - the argument value
Example:
<args><arg value="-version"/></args>
Slashes are handled special (see attribute targetfile of tag<parsable>.
...
The nested <os> element is supported.
...
<os>
- make a file OS-dependent
The <os>
tag can be used inside the <file>
, <fileset>
, <singlefile>
, <parsable>
, <executable>
tags to restrict it's effect to a specific operating system family, architecture or version using the following attributes:
...
Attribute
...
Description
...
family
...
unix, windows, mac to specify the operating system family
...
name
...
the operating system name
...
version
...
the operating system version
...
arch
...
Example
Code Block | ||||
---|---|---|---|---|
| ||||
<packs> (...) <pack name="Core" required="yes"> (...) <executable targetfile="$INSTALL_PATH/bin/compile" stage="never"> <os family="unix"/> </executable> (...) </pack> (...) </packs> |
...