[java-wrappers] 17/61: [java-wrappers] Fix the case when no arguments are given to find_java_runtime
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Oct 24 17:55:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository java-wrappers.
commit 10784fee4d854b6474f299d232ca4bec85750074
Author: Vincent Fourmond <fourmond at debian.org>
Date: Mon Sep 22 23:23:37 2008 +0000
[java-wrappers] Fix the case when no arguments are given to find_java_runtime
---
debian/changelog | 7 +++++++
java-wrappers.sh | 6 ++++++
jvm-list.sh | 2 ++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 041469a..b48ef17 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+java-wrappers (0.1.9) experimental; urgency=low
+
+ * Added a 'all' alias, and make find_java_runtime take no arguments
+ as all
+
+ -- Vincent Fourmond <fourmond at debian.org> Mon, 22 Sep 2008 23:57:26 +0200
+
java-wrappers (0.1.8) experimental; urgency=low
* The 'oops, I missed a syntax error release' - fix a missing
diff --git a/java-wrappers.sh b/java-wrappers.sh
index 27067a6..b253950 100644
--- a/java-wrappers.sh
+++ b/java-wrappers.sh
@@ -87,6 +87,12 @@ find_java_runtime() {
# /usr/lib/java-wrappers/jvm-list.sh
DIRS=""
+
+ # If no arguments are given, we take it as 'all'
+ if test -z "$1"; then
+ set all
+ fi
+
while test "$1"
do
found_jvm=$(eval "echo -n \$__jvm_$1")
diff --git a/jvm-list.sh b/jvm-list.sh
index b7f8c64..6955be4 100644
--- a/jvm-list.sh
+++ b/jvm-list.sh
@@ -46,5 +46,7 @@ __jvm_openjdk6="/usr/lib/jvm/java-6-openjdk"
__jvm_gcj="$__jvm_gcj2"
__jvm_openjdk="$__jvm_openjdk6"
+# All JVMs
+__jvm_all="/usr/lib/jvm/* $__jvm_ibm $__jvm_sun4 $__jvm_sablevm $__jvm_kaffe"
# Probably here should come a few meaningful global aliases.
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/java-wrappers.git
More information about the pkg-java-commits
mailing list