Add test case for PublishFeaturesAndBundlesMojo marking bundle unpacked #3538
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
PublishFeaturesAndBundlesMojo
produces a p2 repository in which plugins are marked as "zipped" and will thus be unpacked upon installation when a feature including them does not include the plugin with "unpack=false". The added test demonstrates this behavior and ensures that only the feature will properly be marked as "zipped" but not the included plugin.Since the mojo uses p2's
FeaturesAndBundlesPublisherApplication
, this test will be influcend by the p2 fix: eclipse-equinox/p2#477Note that this is only for demonstration purposes and not a proper test case yet. In particular, I was not yet able to properly check the resulting p2 repository, which is why the test simply scans the generated
content.xml
for "zipped" markers.