Package: groovy
Version: 0.1.0beta10-3
Severity: wishlist
Hello
When starting groovy for the first time it does not seem to be able to
detect my Java environment although I've set that up correctly using
Debian packages.
As a user already chooses between his default java environments using
update-alternative that decision should be enough for groovy, too,
unless JAVA_HOME has been manuall overridden, of course.
A possible way to detect the java environment would therefore be the
following patch (here only for groovy, should be done for groovyc etc, too):
--- /usr/bin/groovy 2005-10-18 12:39:04.000000000 +0200
+++ /tmp/groovy 2006-12-27 22:28:24.000000000 +0100
@@ -59,6 +59,11 @@
[ -z "$JAVA_HOME" -a -d
"/System/Library/Frameworks/JavaVM.framework/Home" ] &&
export
JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
+ else
+ tmp_java_name="$(readlink -f `which java`)"
+ case $tmp_java_name in
+ /usr/lib/jvm/*/bin/java) export
JAVA_HOME=${tmp_java_name//\/bin\/java/};;
+ esac
fi
fi
bye,
-christian-
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored:
LC_ALL set to [EMAIL PROTECTED])
Versions of packages groovy depends on:
ii ant 1.6.5-6 Java based build tool like make
ii ant-optional 1.6.5-6 Java based build tool like make -
ii junit 3.8.1.1-7 Automated testing framework for Ja
ii libasm-java 1.5.3-4 Java bytecode manipulation framewo
ii libbsf-java 1:2.3.0+cvs20050308a-1 Bean Scripting Framework to suppor
ii libclassworlds-ja 1.0.1-1.1 Java ClassLoader Framework
ii libcommons-cli-ja 1.0-8 API for working with the command l
ii libcommons-collec 3.1a-3.1 A set of abstract data type interf
ii libcommons-loggin 1.0.4-5 commmon wrapper interface for seve
ii libmockobjects-ja 0.09-1.1 Framework for developing and using
ii libmx4j-java 2.1.1-4 An open source implementation of t
ii libregexp-java 1.4-3 regular expression library for Jav
ii libservlet2.3-jav 4.0-8 Servlet 2.3 and JSP 1.2 Java class
ii sun-java5-jre [ja 1.5.0-10-1 Sun Java(TM) Runtime Environment (
groovy recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]