如何从外部程序查找已安装的 Eclipse 功能列表?
我正在为我的 Eclipse 插件准备 Windows 安装程序。 我想使用 P2 控制器将其安装到目标 Eclipse 产品中。 我现在只针对 Eclipse 3.5。
安装程序应检查必备功能/插件是否已安装。 我不知道如何进行这项检查。 (进行此检查的其他原因是选择要安装的其他功能,因为我将在安装程序中捆绑一些先决条件)。
简单的解决方案是查看 eclipse/features/ 和 eclipse/plugins/ 目录,但插件也可能安装在其他地方: dropins 目录并通过 links 目录链接。
如果可能的话,我想从 P2(配置文件?)获取已安装的功能和插件的列表。 有什么办法可以做到这一点吗? 还有更好的解决方案吗?
I am preparing windows installer for my Eclipse plugin. I want install it into target eclipse product using P2 director. I am targetting only Eclipse 3.5 for now.
Installer should check that prerequisite features/plugins are already installed. I am not sure how to do this check. (Other reason for this check is to choose what other features to install, as I will bundle some prerequisites in the installer).
Easy solution is to look into eclipse/features/ and eclipse/plugins/ directories, but plugins may be installed elsewhere too: dropins directory and linked via links directory.
I would like to get list of installed fetures and plugins from P2 (profile?), if possible. Is there any way to do this? Any better solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 P2 代理,它可以满足您的需求。 浏览源代码查看它如何与存储库交互。 您可以使用 p2director 来简化实际安装。
Equinox 孵化器还有许多有用的链接
Have a look at the P2 agent, it does what you are after. Browse the source code to see how it interacts with the repository. You can use the p2 director to streamline the actual installation.
The Equinox Incubator also has a number of useful links
在 http://wiki.eclipse.org/Equinox_p2_Getting_Started 上,他们讨论了
eclipse/configuration /org.eclipse.equinox.simpleconfigurator/bundles.info
文件:好吧,这不是功能列表,但插件列表也不错。
At http://wiki.eclipse.org/Equinox_p2_Getting_Started, they talk about
eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
file:Well, it's not list of features, but list of plugins is good too.