仅在某些Eclipse版本的产品构建期间安装附加功能 [英] Installing an additional feature during product build for some Eclipse versions only

查看:129
本文介绍了仅在某些Eclipse版本的产品构建期间安装附加功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建基于Eclipse 3.7+的产品时,我想添加一个市场功能(org.eclipse.epp.mpc)。我不想明确地将此功能添加到其中一个产品功能,因为我也在构建Eclipse 3.5。有没有办法在构建期间添加此功能?

When building a product based on Eclipse 3.7+, I want to include a marketplace feature (org.eclipse.epp.mpc). I don't want to explicitly add this feature to one of the product features because I am also building for Eclipse 3.5. Is there a way to add this feature during the build?

推荐答案

目前无法创建包含其他特征,即不直接或间接参考产品的特征。此增强功能是此机票中的请求,但目前无法使用Tycho版本(0.16.0)。

It is currently not possible to create a product distribution which contains additional features, i.e. features which are not directly or indirectly referenced from the product. This enhancement was requested in this ticket, but is not available in the current Tycho version (0.16.0).

然而,可以从您的产品中声明可选的贪心依赖关系到市场功能。然后,您可以在构建中(通过配置文件)设置不同的目标平台(3.7)或没有(对于3.5)市场功能。随着可选的贪婪依赖性,Tycho将在产品安装中包含该功能,以便在目标平台中可用。

However there is the possibility to declare an optional greedy dependency to the marketplace feature from your product. Then, you could set up different target platforms in your build (through profiles) with (for 3.7) or without (for 3.5) the marketplace feature. With the optional greedy dependency, Tycho will then include the feature in the product installation in case it is available in the target platform.

这篇关于仅在某些Eclipse版本的产品构建期间安装附加功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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