aboutsummaryrefslogtreecommitdiffstats
path: root/java/javavmwrapper
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-02-03 06:24:20 +0800
committersobomax <sobomax@FreeBSD.org>2002-02-03 06:24:20 +0800
commitbf76371a98b2d69166e1ae3210ea778bcf3a5047 (patch)
tree54c08ff50176b7de0e4810a4fdaf1a0ff5207f60 /java/javavmwrapper
parent776c3222239e23493d015c105ee95b3ae21214e0 (diff)
downloadfreebsd-ports-gnome-bf76371a98b2d69166e1ae3210ea778bcf3a5047.tar.gz
freebsd-ports-gnome-bf76371a98b2d69166e1ae3210ea778bcf3a5047.tar.zst
freebsd-ports-gnome-bf76371a98b2d69166e1ae3210ea778bcf3a5047.zip
Long overdue fix: correctly process arguments with spaces.
Diffstat (limited to 'java/javavmwrapper')
-rw-r--r--java/javavmwrapper/Makefile2
-rw-r--r--java/javavmwrapper/src/javavmwrapper.sh7
2 files changed, 4 insertions, 5 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile
index 53ff0beb5ea8..14184c38c60a 100644
--- a/java/javavmwrapper/Makefile
+++ b/java/javavmwrapper/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= javavmwrapper
-PORTVERSION= 1.3
+PORTVERSION= 1.4
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none
diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh
index 16e9a235b9f5..17dfa4df57e2 100644
--- a/java/javavmwrapper/src/javavmwrapper.sh
+++ b/java/javavmwrapper/src/javavmwrapper.sh
@@ -19,14 +19,13 @@
#
# MAINTAINER= sobomax@FreeBSD.org
-ARGS="${*}"
PREFIX="%%PREFIX%%"
CONF="${PREFIX}/etc/javavms"
IAM=`basename "${0}"`
tryrunVM () {
if [ -x "${1}" ]; then
- exec "${1}" ${2}
+ exec "${@}"
fi
/bin/echo "${IAM}: warning: couldn't start specified JavaVM - \"${1}\"" >&2
@@ -102,7 +101,7 @@ unset JAVA_HOME
# First check if JAVAVM environment variable is set
if [ x"${JAVAVM}" != x"" ]; then
- tryrunVM "${JAVAVM}" "${ARGS}"
+ tryrunVM "${JAVAVM}" "${@}"
fi
# Then try to make sure that ${CONF} exists
@@ -116,7 +115,7 @@ VMS=`/usr/bin/sed 's|#.*||' < "${CONF}" | uniq`
# Finally try to run one of the ${VMS}
for JAVAVM in ${VMS}; do
- tryrunVM "${JAVAVM}" "${ARGS}";
+ tryrunVM "${JAVAVM}" "${@}";
done
echo "${IAM}: error: no suitable JavaVMs found" >&2