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

StackOverflow https://stackoverflow.com/questions/14591472

  •  06-03-2022
  •  | 
  •  

Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top