“ Eclipse-BundleShape:目录”标头不起作用,并且插件仍作为JAR导出 [英] "Eclipse-BundleShape: dir" header is not working and still the plugins are exported as JAR's

查看:85
本文介绍了“ Eclipse-BundleShape:目录”标头不起作用,并且插件仍作为JAR导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Indigo(3.7),并且在插件的MANIFEST.MF中设置了BundleShape标头。

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

如果我导出产品,它仍将插件导出为JAR而不是目录。

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 ??

欢迎提出建议..!

推荐答案

您的产品功能是否基于?如果是这样,您可以在功能中设置安装后解压缩插件档案。

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


  • 打开feature.xml文件

  • 切换到包含的插件标签

  • 选择应在目录中而不是jar形式的插件

  • 选中右侧的安装后解压缩插件档案

  • 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,它说:该功能将永远获胜。如果该功能不可用或未指定unpack属性,束的形状将被咨询。

http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundleshape/


因此,忽略了BundleShape标头的原因是可能是您feature.xml中的 unpack = false 属性。

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

这篇关于“ Eclipse-BundleShape:目录”标头不起作用,并且插件仍作为JAR导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆