Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added hint about expression languages

...

Code Block
languagexml
titleExample of nested aggregate conditions
<conditions>
	<condition type="exists" id="Update">
        <file>${INSTALL_PATH}/some_path</file>
    </condition>
    <condition type="not" id="Install">
        <condition type="ref" refid="Update" />
    </condition>
    <condition type="and" id="linuxInstallOrUpdate">
      <condition type="ref" refid="izpack.linuxinstall" />
      <condition type="or" id="installOrUpdate">
        <condition type="ref" refid="Install" />
        <condition type="ref" refid="Update" />
      </condition>
    </condition>
</conditions>
Info

Instead of defining a Aggregate Condition and using it in a condition attribute, you can also use a term in a sinple or complex expression language in the attribute. See Conditions for details.