Eclipse RCP:构建能够加载插件目录中所有插件的产品
我需要配置我的 Eclipse 产品以加载 features/plugins 目录中的所有功能/插件。现在我的产品只加载元数据中列出的插件,因此,如果我直接从 eclipse 工具导出一些插件作为“可部署插件”,它就会加载到我的产品中,但如果我将插件 jar 直接放在插件目录中,它就不会出现(如果我使用功能也是如此)
我只需进行新的产品配置,放置包含我的应用程序插件的功能,然后导出产品我遇到了这个问题。
我的 eclipse 版本是 3.6.1
我认为问题出在启动器配置中,但我不知道我必须更改什么
I need to configure my eclipse product to load all features/plugins in features/plugins directory. Now my product loads just plugins that are listed in metadata, so if I export some plugin directly from eclipse tool as "deployable plugins" it's loaded in my product, but if I put a plugin jar directly in plugins directory It doesn't appear (the same if I work with features)
I simply make new product configurations, put the feature that contains my application plugin and then exporting product I have this problem.
My eclipse version is 3.6.1
I think the problem is in the launcher configuration but I don't know what I have to change
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
理论上,导出的 RCP 应用程序应该简单地拾取您稍后添加的任何新功能和插件。但是,请确保将额外的内容放入 RCP 的 dropins 文件夹中,因为自引入 p2。
如果由于某种原因它仍然不起作用,请尝试使用 -clean 命令行参数启动 Eclipse。
根据 Eclipse 运行时options 页面中,-clean 参数具有以下效果:
根据我的经验,这可以解决许多神秘的情况,其中新添加的插件不会被 Equinox 加载。
In theory, your exported RCP application should simply pick up any new features and plugins you add later. However, make sure you put the extra stuff in the dropins folder of your RCP, since this is the expected location for manually installed features since the introduction of p2.
If for some reason it still doesn't work, try launching Eclipse with the -clean command line argument.
According to The Eclipse runtime options page, the -clean argument has the following effect:
In my experience this can resolve many mysterious cases, where newly added plugins are not loaded by Equinox.