Community
Participate
Working Groups
P2 supports the notion of filters on dependencies that are matched against properties in the p2 profile. This is a generalization of the os/ws/arch filters that existed in the past in feature.xml. We should consider adding support for such an attribute to be specified in feature.xml, so that additional filters could be defined. For example this could be used to flag bundles or included features as "documentation" or "source" so that the system could be configured to *not* install documentation/source if so desired. See related discussion in bug 114546. I imagine this would look something like this: <plugin id="org.eclipse.platform.doc.user" download-size="0" install-size="0" version="0.0.0" unpack="false" install-filter="(userdoc=true)" --> new filter attribute /> The p2 publisher would then convert this to a required capability filter on the IU. Support for interpreting the IU filters already exists in the p2 runtime, so this looks like a small change to support the attribute in feature.xml editor, and a small publisher change to translate the value.
Worth considering.
I suspect this could be done today via p2.inf but the syntax for representing a filter on a given member of a feature is likely very complex.
Who owns the feature.xml format?
(In reply to comment #3) > Who owns the feature.xml format? We do ;) It's historically an Update Manager construct, but it lives on in the p2 world (at least so far).
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Please remove the stalebug flag, if this issue is still relevant and can be reproduced on the latest release.