[med-svn] [Git][med-team/npinv][master] Fixed jar creation

Steffen Möller (@moeller) gitlab at salsa.debian.org
Sun Jul 11 20:30:32 BST 2021



Steffen Möller pushed to branch master at Debian Med / npinv


Commits:
d7d43b0f by Steffen at 2021-07-11T20:53:02+02:00
Fixed jar creation

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,6 +1,5 @@
 npinv (1.24+ds-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #990958)
-    TODO: Make .jar runnable - fails to find Main
 
  -- Steffen Moeller <moeller at debian.org>  Sun, 11 Jul 2021 19:14:29 +0200


=====================================
debian/rules
=====================================
@@ -5,18 +5,19 @@
 
 CLASSPATH=/usr/share/java/htsjdk.jar:/usr/share/java/picard.jar:/usr/share/java/commons-math3.jar 
 override_dh_auto_build:
-	javac -cp $(CLASSPATH) *.java 
+	ln -s . inversion
+	javac -cp $(CLASSPATH) inversion/*.java 
 	mkdir -p META-INF
 	cp debian/MANIFEST.MF META-INF
-	jar cmvf META-INF/MANIFEST.MF npInv.jar *.class *.java
+	jar cmvf META-INF/MANIFEST.MF npInv.jar inversion/*.class inversion/*.java
 	chmod +x npInv.jar
-	rm -rf META-INF
+	rm -rf META-INF inversion
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	java -cp /usr/share/java/htsjdk.jar:/usr/share/java/commons-math3.jar:/usr/share/java/picard.jar:npInv.jar inversion.Main
+	java -cp /usr/share/java/htsjdk.jar:/usr/share/java/commons-math3.jar:/usr/share/java/picard.jar -jar npInv.jar --help
 endif
 
 override_dh_auto_clean:
 	rm -f *.jar *.class
-	rm -rf META-INF
+	rm -rf META-INF inversion



View it on GitLab: https://salsa.debian.org/med-team/npinv/-/commit/d7d43b0f7cb78b3fec2e4173676069c458ece105

-- 
View it on GitLab: https://salsa.debian.org/med-team/npinv/-/commit/d7d43b0f7cb78b3fec2e4173676069c458ece105
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210711/958c2664/attachment-0001.htm>


More information about the debian-med-commit mailing list