Codebase list java-wrappers / debian/0.1.21
[java-wrappers] Severely trim down the list of valid JVMs + ensure the likes of find_java_runtime default-jre are spotted in due time Vincent Fourmond 13 years ago
3 changed file(s) with 21 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
11
22 * Final form of the find_jar_classpath function that now only performs
33 path expansion for the argument, but not for the elements found in the
4 manifests that should be full paths anyway.
4 manifests that should be full paths anyway (closes: #563197)
5 * Trim down significantly the number of JVMs available, as fortunately
6 the dozens-of-jvms dark age is long gone (closes: #612903)
7 * Make it sure that mistakes such as find_java_runtime default-jre won't
8 go unnoticed.
59
6 -- Vincent Fourmond <fourmond@debian.org> Mon, 04 Apr 2011 20:31:36 +0200
10 -- Vincent Fourmond <fourmond@debian.org> Mon, 04 Apr 2011 21:08:31 +0200
711
812 java-wrappers (0.1.20) experimental; urgency=low
913
104104
105105 while test "$1"
106106 do
107 found_jvm=$(eval "echo -n \$__jvm_$1")
108 if [ -z "$found_jvm" ]; then
109 java_warning "JVM flavor '${1:-none}' not understood"
107 if echo $1 | egrep -- '[^0-9A-Za-z_]'; then
108 java_warning "JVM flavor '${1}' contains illegal characters"
110109 else
111 DIRS="$DIRS $found_jvm"
112 shift
110 found_jvm=$(eval "echo -n \$__jvm_$1")
111 if [ -z "$found_jvm" ] ; then
112 java_warning "JVM flavor '${1:-none}' not understood"
113 else
114 DIRS="$DIRS $found_jvm"
115 fi
113116 fi
117 shift
114118 done
115119 # Nothing means everything
116120 if [ -z "$DIRS" ]; then
2525 __jvm_default="/usr/lib/jvm/default-java"
2626
2727 # Sun runtimes
28 __jvm_sun4="/usr/lib/j2*1.4-sun"
29 __jvm_sun5="/usr/lib/jvm/java-1.5.0-sun /usr/lib/j2*1.5-sun"
3028 __jvm_sun6="/usr/lib/jvm/java-6-sun /usr/lib/j2*1.6-sun"
3129
3230 # all sun runtimes
33 __jvm_sun="$__jvm_sun4 $__jvm_sun5 $__jvm_sun6"
31 __jvm_sun="$__jvm_sun6"
3432 # Sun version at least 5:
35 __jvm_sunmin5="$__jvm_sun5 $__jvm_sun6"
36
37 # IBM runtimes. This comes from argouml.sh
38 # I'm not quite sure it is still useful, but, we never know !
39 __jvm_ibm="/usr/lib/j2*1.[456]-ibm"
40
33 __jvm_sunmin5="$__jvm_sun6"
4134
4235 # Now, free runtimes:
4336 __jvm_gcj2="/usr/lib/jvm/java-*-gcj-4.* "
4437 __jvm_gcj5="/usr/lib/jvm/java-1.5*-gcj-4.* "
45 __jvm_sablevm="/usr/lib/sablevm" # Probably should be dropped, only in etch
46 __jvm_kaffe="/usr/lib/kaffe /usr/lib/kaffe/pthreads /usr/lib/kaffe/jthreads"
47 __jvm_icedtea="/usr/lib/jvm/java-7-icedtea" # Probably should be dropped...
48 __jvm_cacao="/usr/lib/jvm/cacao"
4938 __jvm_openjdk6="/usr/lib/jvm/java-6-openjdk"
50 __jvm_cacaooj6="/usr/lib/jvm/java-6-cacao/jre"
5139
5240 # And a few aliases
5341 __jvm_gcj="$__jvm_gcj2"
54 __jvm_openjdk="$__jvm_openjdk6 $__jvm_cacaooj6"
42 __jvm_openjdk="$__jvm_openjdk6"
5543
5644 # The java* runtimes:
5745 # -> corresponds to Provides: java6-runtime
58 __jvm_java6="$__jvm_openjdk6 $__jvm_cacaooj6 $__jvm_sun6"
46 __jvm_java6="$__jvm_openjdk6 $__jvm_sun6"
5947 # -> corresponds to Provides: java5-runtime
60 __jvm_java5="$__jvm_gcj5 $__jvm_java6 $__jvm_sun5"
48 __jvm_java5="$__jvm_gcj5 $__jvm_java6"
6149 # -> corresponds to Provides: java2-runtime
6250 __jvm_java2="$__jvm_java5 $__jvm_gcj2"
6351
6553 __jvm_alt=$(readlink /etc/alternatives/java|sed -n 's/\(\/usr\/lib\/jvm\/[^\/]*\)\/.*/\1/p')
6654
6755 # All JVMs
68 __jvm_all="$__jvm_default /usr/lib/jvm/* $__jvm_ibm $__jvm_sun4 $__jvm_sablevm $__jvm_kaffe"
56 __jvm_all="$__jvm_default /usr/lib/jvm/*"
6957
7058 # Probably here should come a few meaningful global aliases.