Installing an additional feature during product build for some Eclipse versions only

被刻印的时光 ゝ 提交于 2019-12-10 11:45:02

问题


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?


回答1:


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

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.



来源:https://stackoverflow.com/questions/14591472/installing-an-additional-feature-during-product-build-for-some-eclipse-versions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!