[freehep-util] 04/04: Add classpath to JAR.

Giovanni Mascellani gio at moszumanska.debian.org
Mon Jun 6 17:12:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

gio pushed a commit to branch master
in repository freehep-util.

commit 2c443fa9846697bd532d5f809b6354c6575ff5d3
Author: Giovanni Mascellani <mascellani at poisson.phc.unipi.it>
Date:   Sat Jun 4 22:24:54 2016 +0200

    Add classpath to JAR.
---
 debian/changelog              |  1 +
 debian/patches/classpath.diff | 29 +++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 251661b..14187f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ freehep-util (2.0.2-6) UNRELEASED; urgency=medium
   * Build with debhelper 9 instead of CDBS.
   * Quit using topgit and remove leftovers.
   * Remove trivial information in debian/README.source.
+  * Add classpath to the JAR manifest.
 
  -- Giovanni Mascellani <gio at debian.org>  Sat, 04 Jun 2016 22:05:33 +0200
 
diff --git a/debian/patches/classpath.diff b/debian/patches/classpath.diff
new file mode 100644
index 0000000..9e5e56a
--- /dev/null
+++ b/debian/patches/classpath.diff
@@ -0,0 +1,29 @@
+From: Giovanni Mascellani <gio at debian.org>
+Subject: Add classpath to compiled JAR
+Index: freehep-util/pom.xml
+===================================================================
+--- freehep-util.orig/pom.xml
++++ freehep-util/pom.xml
+@@ -17,6 +17,22 @@
+       <url>http://java.freehep.org/maven2</url>
+     </repository>
+   </repositories>
++  <build>
++    <plugins>
++      <plugin>
++        <artifactId>maven-jar-plugin</artifactId>
++        <configuration>
++          <archive>
++            <manifest>
++              <addClasspath>true</addClasspath>
++              <classpathLayoutType>repository</classpathLayoutType>
++              <classpathPrefix>/usr/share/maven-repo</classpathPrefix>
++            </manifest>
++          </archive>
++        </configuration>
++      </plugin>
++    </plugins>
++  </build>
+   <dependencies>
+     <dependency>
+       <groupId>org.netbeans</groupId>
diff --git a/debian/patches/series b/debian/patches/series
index a0b5fb0..110f59a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 openide-api.diff
+classpath.diff

-- 
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-java/freehep/freehep-util.git



More information about the pkg-java-commits mailing list