Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10288

FelixFrameworkScanner sets framework properties always for current Java version

    XMLWordPrintableJSON

Details

    Description

      Sometimes the analyser is executed with a different java version than the one executing the actual OSGi container. There should be a possibility to explicitly set a Java version.

      Currently the framework properties are gathered in a dedicated java process executing https://github.com/apache/sling-org-apache-sling-feature-analyser/blob/730b7d3297ab9f17f484e7b557e4ec47c3d9b3e9/src/main/java/org/apache/sling/feature/scanner/impl/fwk/FrameworkPropertiesGatherer.java#L41. That new process always takes the current java.home which therefore returns the wrong properties (i.e. the ones for the current java version instead of the one used to execute the framework).

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: