Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19789

Add conditionals to package install.xml

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10

      Description

      A package installation script needs to be able to test the platform in which the install is done and the already-installed packages to decide if a given bundle/lib should be installed.

      For example, in nuxeo-quotas, the JSF UI part cannot be installed on a pure Nuxeo Server without JSF UI.


      To add a conditional install for a package, in its install.xml you can put the bundles that are specific to the JSF UI in a install/bundles-jsf-ui folder and add something like:

            <update file="${package.root}/install/bundles-jsf-ui" todir="${env.bundles}" if="Packages.contains('nuxeo-jsf-ui')" />
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: