-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly consider cardinality based on the directives
Currently the BundlesAction uses either 0 or 1 as the cardinality but actually a requirement can be a multi-cardinality as well. This adds new dedicated methods to not duplicate the computation and a testcase that ensures all combination are covered and correctly translated.
- Loading branch information
Showing
3 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
bundles/org.eclipse.equinox.p2.tests/testData/requireMultiple/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: require.multiple | ||
Bundle-SymbolicName: require.multiple | ||
Bundle-Version: 1.0.0 | ||
Require-Capability: single.required;filter:="(objectClass=testme)", | ||
single.optional;filter:="(objectClass=testme)";resolution:=optional, | ||
multiple.required;filter:="(objectClass=testme)";cardinality:=multiple, | ||
multiple.optional;filter:="(objectClass=testme)";cardinality:=multiple;resolution:=optional |