Replies: 4 comments 2 replies
-
The usual pattern for this is to have everything in the feature but mark it as optional, that way items where filter do not match get excluded, would that work for you? |
Beta Was this translation helpful? Give feedback.
-
To make it clearer: It also applies if I have a bundle with a complex
Of course, this is no real-world example but I hope it shows the point. |
Beta Was this translation helpful? Give feedback.
-
This is how fragments are included in features:
Like this in the structured editor: You need something even more generalized than that? |
Beta Was this translation helpful? Give feedback.
-
Note that you can do even more complex things using a p2.inf via https://wiki.eclipse.org/Equinox/p2/Customizing_Metadata If you do that for a feature, be sure to specify it in the build.properties: |
Beta Was this translation helpful? Give feedback.
-
Summary
Currently, when creating bundles for Eclipse plug-ins/fragments there is the possibility to set a platform filter via the
Eclipse-PlatformFilter
header in the manifest file using the LDAP filter syntax which allows for complex conditions.There is no such option for features when selecting plug-ins/fragments and even further features to be included.
Why
We noticed, even though this is a corner case, that when creating a plug-in with fragments we can cover most of the environment combinations via specific fragments, we want to have a "fallback" fragment for every other environment combination. Setting it on the manifest file in the bundle itself works great having the freedom of filtering this way but when trying to put everything into a feature, the limitations are clearly shown.
Idea
Having the LDAP filter syntax on features as well for included plug-ins/fragments/features would give us more freedom when creating the feature without the need to create multiple features (which would be possible but is way more overhead).
Additionally, it would be great that when including a fragment into one feature there would be the possibility to re-use the
Eclipse-PlatformFilter
header to configure the details regarding OS/window system/language/architecture.Beta Was this translation helpful? Give feedback.
All reactions