...
- izpack.windowsinstall
True if the current OS is (any) Windows. - izpack.windowsinstall.xp
True if the current OS is Windows XP. - izpack.windowsinstall.2003
True if the current OS is Windows Server 2003. - izpack.windowsinstall.vista
True if the current OS is Windows Vista. - izpack.windowsinstall.7
True if the current OS is Windows 7. - izpack.windowsinstall.8
True if the current OS is Windows 8. - izpack.macinstall
True if the current OS is Mac OS X. - izpack.linuxinstall
True if the current OS is (any) Linux. - izpack.solarisinstall
True if the current OS is (any) Solaris. - izpack.solarisinstall.x86
True if the current OS is (any) Solaris x86. - izpack.solarisinstall.sparc
True if the current OS is (any) Solaris Sparc.
Using Conditions
Common Attributes
...
Here is an example which defines four conditions, two VariableConditions, a JavaCondition and a AndCondition which will refer to two of the first conditions:
Code Block | ||||
---|---|---|---|---|
| ||||
<conditions>
<condition type="variable" id="standardinstallation">
<name>setup.type</name>
<value>standard</value>
</condition>
<condition type="variable" id="expertinstallation">
<name>setup.type</name>
<value>expert</value>
</condition>
<condition type="java" id="installonwindows">
<java>
<class>com.izforge.izpack.util.OsVersion</class>
<field>IS_WINDOWS</field>
</java>
<returnvalue type="boolean">true</returnvalue>
</condition>
<condition type="and" id="standardinstallation.onwindows">
<condition type="ref" refid="standardinstallation"/>
<condition type="ref" refid="installonwindows" />
</condition>
</conditions>
|
...