aboutsummaryrefslogtreecommitdiff
path: root/java/javavmwrapper
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-02-02 22:24:20 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-02-02 22:24:20 +0000
commit1773476e67665f652330dba91aa9a36c4a356e97 (patch)
treea64c4f9b6da021b75ccff736fe2d784ac68eb44a /java/javavmwrapper
parentaf543e82b67d0f9c970de6462671dc7e70b9f7a4 (diff)
downloadports-1773476e67665f652330dba91aa9a36c4a356e97.tar.gz
ports-1773476e67665f652330dba91aa9a36c4a356e97.zip
Long overdue fix: correctly process arguments with spaces.
Notes
Notes: svn path=/head/; revision=54146
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