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

Add a new utility method for retrieving the major version

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 2021.x, 2023.x
    • Fix Version/s: None
    • Component/s: Launcher

      Description

      Currently the Platform helper here only offers getVersion which returns the whole version, meaning 2021.2.6 and nothing to retrieve 2021.

      This is an issue when a package has to deploy bundles or templates based on the major version. It is currently not possible.

      Workaround: this seems to be achievable with the existing helpers:

      Platform.getVersion().startsWith('2021')
      

        Attachments

          Activity

            People

            • Assignee:
              ffischer Frantz Fischer
              Reporter:
              ffischer Frantz Fischer
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: