We have this report here in Tycho
the problem is that currently P2 handles all required capabilities the same regardless of their effectivness.
For the build, Tycho likely only wants to consider effective:=resolve, while for install / execution also effective:=active should be used, and other maybe should be ignored at all.
To support this, we need to have a way to disable certain requirements as we already do for other purpose (e.g. source bundles) and do it like this:
- no effective given or value is
resolve we do as before
- in other case we do similar to what source bundles do and add a
org.eclipse.p2.effective.<name of directive> filter that evaluates to true by default but can be switched off by setting a context property
We have this report here in Tycho
the problem is that currently P2 handles all required capabilities the same regardless of their effectivness.
For the build, Tycho likely only wants to consider
effective:=resolve, while for install / execution alsoeffective:=activeshould be used, and other maybe should be ignored at all.To support this, we need to have a way to disable certain requirements as we already do for other purpose (e.g. source bundles) and do it like this:
resolvewe do as beforeorg.eclipse.p2.effective.<name of directive>filter that evaluates to true by default but can be switched off by setting a context property