如何自动验证 RCP .product 文件中的依赖项?
我对构建 Eclipse RCP 应用程序有点陌生,我发现有必要验证 .product
文件的 Dependency 选项卡中的插件列表。但 Eclipse (Indigo) 没有提供任何工具来提供帮助。在启动配置中,插件选项卡中有一些很棒的工具(按钮添加所需插件和验证插件)。似乎有两个非常明显的解决方案不可用:
- 添加一个新按钮(或其他东西)以将插件的确切列表从
.launch
复制到.product< /code> 文件(我尝试手动复制支持文件的文本,但 xml 格式不同),或者
- 将相同的两个按钮放在
.productDependencies 选项卡中代码> 文件。
我只创建一个简单的插件,依赖项列表有 300 个条目...手动与 .launch
进行比较非常繁琐!我是否遗漏了一些东西,实际上有没有办法直接在 .product
文件中验证这些依赖项?感谢您的帮助。
拜伦
I'm a bit new to building Eclipse RCP applications, and I'm finding it necessary to validate the list of plugins in the Dependencies tab of the .product
file. But Eclipse (Indigo) offers no tools to help. In the launch configurations, there are great tools in the Plug-ins tab (buttons Add Required Plug-ins and Validate Plug-ins). It seems like there are 2 really obvious solutions that just aren't available:
- Add a new button (or something) to copy the exact list of plugins from a
.launch
into a.product
file (I tried to manually copy the text of the backing files, but the xml formats differ), or - Put the same two buttons in the Dependencies tab of the
.product
file.
I'm only creating one simple plugin, and the dependency list has 300 entries... very tedious to manually compare with a .launch
! Am I missing something, is there actually a way to validate these dependencies directly in the .product
file? Thanks for your help.
Byron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是获得您想要的结果的两种可能性:
创建新产品配置
在初始化文件内容下的新产品配置对话框中选择使用启动配置并选择插件的启动配置
打开*.product文件,切换到依赖项选项卡,您可以看到运行定义的插件所需的所有插件< /p>
编辑现有 插件产品配置
打开*.product文件,切换转到概述选项卡,然后在产品定义/应用下选择插件的启动配置
切换到依赖项选项卡并添加您的定义通过添加按钮插入
选择计算所需插件时包括可选依赖项 复选框(您可以在底部找到)
点击添加所需插件按钮,您可以看到所有运行定义插件所需的插件
Here are two posibilities to get what you want:
Create a new product configuration
In the New Product Configuration dialog under Initialize the file content select Use a launch configuration and choose your Plug-In's launch configuration
Open the *.product file, switch to the Dependencies tab and you can see all Plug-Ins which are required to run your defining Plug-In
Edit an existing product configuration
Open the *.product file, switch to the Overview tab and select your Plug-In's launch configuration under Product Definition / Application
Switch to the Dependencies tab and add your defining Plug-In via the Add button
Select the Include optional dependencies when computing required plug-ins checkbox (which you can find at the bottom)
Hit the Add Required Plug-Ins button and you can see all Plug-Ins which are required to run your defining Plug-In