I'm having Eclipse Indigo (3.7) and I have the BundleShape header being set in the MANIFEST.MF of my plugin.
Eclipse-BundleShape: dir
If I export the product it is still exporting the plugin as JAR and not as a directory.
NOTE : My project is a Plugin based project.
Anything I'm missing ??
Suggestions are welcomed..!
Is your product feature based? If so, you can set the "Unpack the plug-in archive after the installation" option in your feature.
@ EclipseSource it says: "the feature will always win. If the feature isn’t available or the unpack attribute isn’t specified, the bundle will be consulted for its shape."
http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundleshape/
So the reason why the BundleShape header is ignored is probably the
unpack="false"
attribute in your feature.xml.I have just had a problem with this directive. In one project it worked as expected, in another a jar was always produced and not a folder.
In the first project the directive was right at the end of the MANIFEST file, in the second it was near the top. I moved the
Bundle-Shape: dir
directive to the end of the file and the problem appears to have been solved.