eclipse-equinox / p2

Eclipse Public License 2.0
15 stars 41 forks source link

UpdateSitePublisher -addJREIU argument doesn't add current JVM #461

Closed iloveeclipse closed 8 months ago

iloveeclipse commented 8 months ago

One of the issues found while investigating https://github.com/eclipse-equinox/p2/issues/450.

eclipse -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher -addJREIU ... doesn't add JRE "IU" for the currently used JRE but to the one set in JREAction.DEFAULT_PROFILE (currently Java 17).

So I'm unable to add "a.jre.javase" with Java 21 to the published update site content.xml and so can't install bundles that require Java 21 using plain SDK, even if everything runs on Java 21.

iloveeclipse commented 8 months ago

Verified works with I20240212-1800. I can generate "a.jre.javase" 21 IU now via UpdateSitePublisher application.