Hi.

On 27/12/2011 22:55, Giovanni Mascellani wrote:
> jh_build fails when the classpath is too long, because jar rejects
> manifests with long lines. The attached patch puts every classpath
> element on a different line and solves this issue.

Sorry, that patch was wrong, there was one space missing. I'm attaching
the correct one.

Thanks, Gio.
-- 
Giovanni Mascellani <mascell...@poisson.phc.unipi.it>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org
From 0e97b4065181942bb6e55eb457a366179f2e45aa Mon Sep 17 00:00:00 2001
From: Giovanni Mascellani <g...@debian.org>
Date: Tue, 27 Dec 2011 20:37:44 +0100
Subject: [PATCH] Putting classpath elements on different lines.

This is necessary to avoid jar complaining about manifest having too
long lines.
---
 debian/changelog |    7 ++++++-
 jh_build         |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c485899..eb97d8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,17 @@
 javatools (0.38) UNRELEASED; urgency=low
 
+  [ Niels Thykier ]
   * Added missing empty line the in d/control generated by jh_makepkg
   * Bumped debhelper compat to 8 in packages generated by jh_makepkg
   * Fixed the "find" expressions in jh_repack to only remove files
     named "*.jar" or "*.class".  Thanks to Andrew Ross for the report.
     (Closes: #646514)
 
- -- Niels Thykier <ni...@thykier.net>  Mon, 11 Jul 2011 15:20:40 +0200
+  [ Giovanni Mascellani ]
+  * Putting classpath elements for the manifest in different lines,
+    because jar fails when manifest lines are too long.
+
+ -- Giovanni Mascellani <g...@debian.org>  Tue, 27 Dec 2011 20:35:19 +0100
 
 javatools (0.37) unstable; urgency=low
 
diff --git a/jh_build b/jh_build
index 8fb495f..ba24b70 100755
--- a/jh_build
+++ b/jh_build
@@ -83,7 +83,7 @@ function dobuild()
 	touch debian/_jh_manifest.$ext
 	if [ -n "$CLASSPATH" ]; then
 		echo -n "Class-Path: " >> debian/_jh_manifest.$ext
-		echo $CLASSPATH | sed 's/:/ /g' >> debian/_jh_manifest.$ext
+		echo $CLASSPATH | sed 's/:/ \n /g' >> debian/_jh_manifest.$ext
 	fi
 	if [ -n "`getarg m main`" ]; then
 		echo "Main-Class: `getarg m main`" >> debian/_jh_manifest.$ext
-- 
1.7.7.3

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to