-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for PublishFeaturesAndBundlesMojo marking bundle unpacked
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.
- Loading branch information
1 parent
27398a5
commit d23230d
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+366 Bytes
tycho-its/projects/p2extra/publisherNoUnpack/features/test_feature_1.0.0.202402290953.jar
Binary file not shown.
Binary file added
BIN
+417 Bytes
tycho-its/projects/p2extra/publisherNoUnpack/plugins/test_plugin_1.0.0.202402290953.jar
Binary file not shown.
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>tycho-its-project.p2extra.publisherNoUnpack</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<!-- Configuration for the PublishFeaturesAndBundlesMojoTest --> | ||
<plugin> | ||
<groupId>org.eclipse.tycho.extras</groupId> | ||
<artifactId>tycho-p2-extras-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<executions> | ||
<execution> | ||
<phase>prepare-package</phase> | ||
<goals> | ||
<goal>publish-features-and-bundles</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<sourceLocation>.</sourceLocation> | ||
<artifactRepositoryLocation>target/repository</artifactRepositoryLocation> | ||
<metadataRepositoryLocation>target/repository</metadataRepositoryLocation> | ||
<publishArtifacts>true</publishArtifacts> | ||
<compress>false</compress> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
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