Bug#526087: java-wrappers: locate_jar has broken support for abs. filenames

Paul Millar paul.millar at desy.de
Wed Apr 29 07:30:57 UTC 2009


Package: java-wrappers
Version: 0.1.13
Severity: important
Tags: patch

The java_wrappers script includes support for building a Java classpath using the locate_jar function.
This searches a number of locations to locate an appropriate jar file, given the name of the jar file
as an argument.  The function proports to support specifying the jar file with an absolute path; however,
from what looks like a simple copy-n-paste error, this results in the wrong classpath being built.

The following patch fixes this issue:

--- java-wrappers.sh.orig       2009-04-29 09:18:37.000000000 +0200
+++ java-wrappers.sh    2009-04-29 09:29:02.000000000 +0200
@@ -178,11 +178,11 @@
     elif [ -r $jar ]; then
        # Maybe issue a warning that jars should not be looked
        # for absolutely ?
-       found_jar=$JAVA_JARPATH/$jar
+       found_jar=$jar
     elif [ -r $jar.jar ]; then
        # Maybe issue a warning that jars should not be looked
        # for absolutely ?
-       found_jar=$JAVA_JARPATH/$jar.jar
+       found_jar=$jar.jar
     else
        return 1                # Not found
     fi


-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information





More information about the pkg-java-maintainers mailing list