What I have is an RCP application, and a plugin directory in it:
my-rcp-app/
...
plugins/
...
com.mycompany.myproduct.ui_1.0.1/
com/
META-INF/
plugin.xml
Then I make a JAR with the same contents as the plugin directory, com.mycompany.myproduct.ui_1.0.1.jar, and put it into plugins/ instead of a com.mycompany.myproduct.ui_1.0.1 folder.
Surprisingly, the app doesn’t start. That’s from the logs:
!SUBENTRY 2 com.mycompany.root.bundle 2 0 2012-07-05 20:01:17.511
!MESSAGE Missing required bundle com.mycompany.myproduct.ui_1.0.1.
So, 2 questions here:
- How to deploy a plugin in a JAR, if I’ve got a directory with classes, configs etc.
- Is it enough to unpack a JAR into plugins, for the app to keep working?
As @TobiasWillig already noted, plug-in directories and JARs are indeed fully interchangeable.
But in this specific case I had to edit
configuration/org.eclipse.equinox.simpleconfigurator/bundles.infofile, replacingwith the
I.e., it’s required to manually specify a path to the plug-in.