Community
Participate
Working Groups
Build Identifier: 20100218-1602 When exporting a plug-in based product, the plug-ins are always exported as jar files, even if they have set "Eclipse-BundleShape: dir" in their manifest files. This is not working for other users as well, as seen in the comments of this blog post: http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundleshape/ Reproducible: Always Steps to Reproduce: I have verified this in my own project when exporting the product via the Eclipse product export wizard.
"Eclipse-BundleShape: dir" works for me in a plugin based product export. The code for this during export is in UI, CoreUtility#guessUnpack called from ProductExportOperation#setAdditionalAttributes. I see a couple of cases where the bundle shape would not get used: 1) the projects that do not have the "org.eclipse.jdt.core.javanature" are always unpacked (not sure why) 2) bundles that exist as jars on disk (ie binary jars in the target) are not unpacked
Also, Alex if you can attach a small example where this doesn't work, that would help find the problem. And, are you checking "Generate metadata repository" during export?
Created attachment 170865 [details] Hello world plugin based product.
I've attached a simple hello world RCP application with a product based on plugins. "Eclipse-BundleShape: dir" only works if I select "Generate metadata repository" during export. Unfortunately I can't test this workaround in my real world application because I get an error message if I check it (I'm not concerned about it right now, since I do not need to generate an update repository).
It does not work under Indigo Release Build id: 20110519-1049 (or at most, randomly works)
It seems to work when doing some fake edit on the MANIFEST.MF file, saving it, and exporting the plugin immediately afterwards (an observed behaviour in release 3.6.2).
... using the "Deployable plug-ins and fragments" export wizard here.
I had 2 projects: one produced a folder as required, the other would only produce a jar in spite of the Bundle-Shape: dir entry. The difference I noticed was the position of the directive. In the first project it was right at the end of the manifest but in the second it was near the top. I moved the directive to the end of the manifest and the project produces a folder. (Using Kepler on Windows7)
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.