diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2012-06-12 00:17:55 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-06-12 18:10:04 +0200 |
commit | 4974090d33011edf6c4112ea881741f2bf288a8f (patch) | |
tree | 853d00e5846665dc3d899dd96896c85e0f28d150 /org.eclipse.jgit.pgm | |
parent | 2853c61f12f44bdacac404a58cebd191f98299b1 (diff) | |
download | jgit-4974090d33011edf6c4112ea881741f2bf288a8f.tar.gz jgit-4974090d33011edf6c4112ea881741f2bf288a8f.zip |
Add org.eclipse.jgit.pgm.feature to enable consumption via p2
Orion wants to consume the pgm bundle from a p2 repository in their
build. Also add corresponding source bundle and feature to provision
sources via a target platform.
Bug: 373789
Change-Id: I0016ee155553c546606b63d310666eb10bd997e1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/META-INF/SOURCE-MANIFEST.MF | 8 | ||||
-rw-r--r-- | org.eclipse.jgit.pgm/pom.xml | 50 |
2 files changed, 58 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/META-INF/SOURCE-MANIFEST.MF b/org.eclipse.jgit.pgm/META-INF/SOURCE-MANIFEST.MF new file mode 100644 index 0000000000..db917790b2 --- /dev/null +++ b/org.eclipse.jgit.pgm/META-INF/SOURCE-MANIFEST.MF @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.jgit.pgm - Sources +Bundle-SymbolicName: org.eclipse.jgit.pgm.source;singleton:=true +Bundle-Vendor: Eclipse.org - JGit +Bundle-Version: 2.0.0.qualifier +Eclipse-SourceBundle: org.eclipse.jgit.pgm;version="2.0.0";roots="." + diff --git a/org.eclipse.jgit.pgm/pom.xml b/org.eclipse.jgit.pgm/pom.xml index 67b5d3016b..403073b427 100644 --- a/org.eclipse.jgit.pgm/pom.xml +++ b/org.eclipse.jgit.pgm/pom.xml @@ -60,6 +60,11 @@ Command line client tools built on top of JGit. </description> + <properties> + <translate-qualifier/> + <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest> + </properties> + <dependencies> <dependency> <groupId>args4j</groupId> @@ -108,6 +113,7 @@ <resource> <directory>.</directory> <includes> + <include>plugin.properties</include> <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include> <include>about.html</include> </includes> @@ -119,6 +125,15 @@ <plugins> <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifestFile>${bundle-manifest}</manifestFile> + </archive> + </configuration> + </plugin> + + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> @@ -164,6 +179,41 @@ <goal>run</goal> </goals> </execution> + <execution> + <id>translate-source-qualifier</id> + <phase>generate-resources</phase> + <configuration> + <tasks> + <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/> + <replace file="${source-bundle-manifest}"> + <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/> + </replace> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <inherited>true</inherited> + <executions> + <execution> + <id>attach-sources</id> + <phase>process-classes</phase> + <goals> + <goal>jar</goal> + </goals> + <configuration> + <archive> + <manifestFile>${source-bundle-manifest}</manifestFile> + </archive> + </configuration> + </execution> </executions> </plugin> |