|Exporting a bundle with dependencies with another bundles [message #779782]
||Mon, 16 January 2012 14:54
| Pablo G
Registered: January 2012
I have this OSGI configuration:|
My config.ini is like this:
osgi.clean = true
So, AFAIK, when I execute
java -Xms256M -Xmx1280M -jar osgi-3.4.2-R34x_v20080826-1230.jar
It reads config.ini so with equinox.common and update.configurator bundles it "detects" all bundles deployed in /plugins folder. After that, the ConfiguratorModule (a custom bundle) just reads all bundles in the context and executes start method of each one (bundleA and bundleB). I have an eclipse project (bundleC), which uses some clases defined in bundleA and bundleB, so the MANIFEST.MF is:
Bundle-Name: BundleC Plug-in
So, I want to generate a plugin (jar) file for the bundleC project. As there are two bundles in the "Require-bundle" option, those projects (BundleA and BundleB) should be in the bundleC classpath, isn´t it? So, in that case, I just generate the bundle (by exporting it as "Plugin Development") and place the new bundle in the plugin folder. Is there something I'm missing?
Well, in case all I´ve said is correct, here is my problem. I have the plugin jar file for BundleA and BundleB but I don´t have the source code of them, so I get an error when exporting BundleC to a jar plugin because, as it seem obvious, it can´t find the required classes it uses from BundleA and BundleB. Is there any way to generate the plugin without those required-bundles in the classpath?
I´ve tried to "decompile" them and then create the projects, and adding them in the classpath of BundleC. I can generate the plugin, but I guess there's a simple and correct way to achieve that.
Thanks for your answers
Powered by FUDForum
. Page generated in 0.02298 seconds