RFR: 5994: Ensure dropins folder works

Marcus Hirt hirt at openjdk.org
Mon Dec 11 17:59:30 UTC 2023


On Fri, 8 Dec 2023 16:04:08 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:

> This short PR looks to address JMC-5994 [[0]](https://bugs.openjdk.org/browse/JMC-5994), in which the plugin dropins folder does not work for JMC.
> 
> The idea behind the dropins folder is that you can place an external Eclipse plugin directly into the folder and it'll be loaded by Eclipse into JMC during application start. Taking a look at the debug logs, it looks like there are a couple of features that are missing that are required for running UI related plugins (`org.eclipse.ui.ide` & `org.eclipse.ui.editors`). The issue description [0] mentions checking if the dropins functionality worked in JMC 6, as it was also not working in JMC 7, so this looks to be a long-running issue.
> 
> I've created a very basic plugin that can be found here for testing purposes: https://github.com/aptmac/5994-dummy-plugin
> 
> To test this PR you can place the dummy folder into the dropins folder and verify the installation using the dialog at `Help -> About JDK Mission Control -> Installation Details -> Plug-ins`. You can also place the `.option` file into the same directory as your build jmc application and then run jmc using the debug console: `./jmc -debug -console -consoleLog`
> 
> **Before:**
> Log:
> 
> !ENTRY org.eclipse.equinox.p2.director 2 0 2023-12-08 09:21:45.417
> !MESSAGE Problems resolving provisioning plan.
> !SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2023-12-08 09:21:45.417
> !MESSAGE Unable to satisfy dependency from dummy 1.0.0.qualifier to osgi.bundle; org.eclipse.ui.editors 0.0.0.
> !SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2023-12-08 09:21:45.417
> !MESSAGE Unable to satisfy dependency from dummy 1.0.0.qualifier to osgi.bundle; org.eclipse.ui.ide 0.0.0.
> 
> 
> Installation Details:
> ![before](https://github.com/openjdk/jmc/assets/10425301/c1c7f5f6-5fa4-4a9f-a8f4-2d9f26d76431)
> 
> **After:**
> Log:
> 
> [p2] Fri Dec 08 09:49:29 EST 2023 - [Start Level: Equinox Container: f14ff445-7fe9-4e0a-8b62-619cfa6b1b24] [reconciler] Cached timestamp file empty.
> [p2] Fri Dec 08 09:49:29 EST 2023 - [Start Level: Equinox Container: f14ff445-7fe9-4e0a-8b62-619cfa6b1b24] [reconciler] Performing reconciliation.
> [p2] Fri Dec 08 09:49:29 EST 2023 - [Start Level: Equinox Container: f14ff445-7fe9-4e0a-8b62-619cfa6b1b24] [reconciler] [dropins] Interesting feature or bundle added: /home/aptmac/workspace/jmc/target/products/org.openjdk.jmc/linux/gtk/x86_64/JDK Mission Control/dropins/dummy
> [p2] Fri Dec 08 09:49:29 EST 2023 - [Start Level: Equinox Container: f14ff445-7fe9-4e0a-8b62-619cfa6b1b24] [reconciler] Ti...

Nice! Do we get any additional preference pages that we may want to filter out, or any other potentially unwanted contributed behaviour from including these plug-ins?

-------------

PR Comment: https://git.openjdk.org/jmc/pull/537#issuecomment-1850590309


More information about the jmc-dev mailing list