[javatools] 01/01: Use generic java command instead of gij

Markus Koschany apo-guest at moszumanska.debian.org
Tue Dec 9 15:40:43 UTC 2014


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

apo-guest pushed a commit to branch master
in repository javatools.

commit 895d7398e2f82255fc762254028e0e6042ff3360
Author: Markus Koschany <apo at gambaru.de>
Date:   Tue Dec 9 16:40:03 2014 +0100

    Use generic java command instead of gij
    
    Otherwise this will cause false positives...
---
 jarwrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jarwrapper b/jarwrapper
index 3693882..7a5a89e 100755
--- a/jarwrapper
+++ b/jarwrapper
@@ -38,7 +38,7 @@ MULTIARCH_LIBRARY_PATH_32BIT="/usr/lib/jni:/usr/lib/arm-linux-gnueabi/jni:/usr/l
 MULTIARCH_LIBRARY_PATH_64BIT="/usr/lib/jni:/usr/lib/alpha-linux-gnu/jni:/usr/lib/x86_64-linux-gnu/jni:/usr/lib/aarch64-linux-gnu/jni:/usr/lib/x86_64-kfreebsd-gnu/jni:/usr/lib/powerpc64-linux-gnu/jni:/usr/lib/powerpc64le-linux-gnu/jni:/usr/lib/s390x-linux-gnu/jni:/usr/lib/sparc64-linux-gnu/jni"
 
 if which "$JAVA" >/dev/null 2>&1; then
-    if gij --version | grep "GNU libgcj" > /dev/null; then
+    if java --version | grep "GNU libgcj" > /dev/null; then
         # Let GNU gij handle the library path by itself
         export LD_LIBRARY_PATH=/usr/lib/jni
         exec $JAVA $JAVAOPTS -jar "$JAR" "$@"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/javatools.git



More information about the pkg-java-commits mailing list