“Eclipse-BundleShape: dir” header is not working and still the plugins are exported as JAR's

不羁岁月 提交于 2019-12-11 01:32:51

问题


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..!


回答1:


Is your product feature based? If so, you can set the "Unpack the plug-in archive after the installation" option in your feature.

  • open your feature.xml file
  • switch to the "Included Plug-ins" tab
  • select the plugin which should be in directory instead of jar form
  • check "Unpack the plug-in archive after the installation" on the right side

@ 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.




回答2:


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.



来源:https://stackoverflow.com/questions/35079566/eclipse-bundleshape-dir-header-is-not-working-and-still-the-plugins-are-expor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!