diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-02-03 06:24:20 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-02-03 06:24:20 +0800 |
commit | bf76371a98b2d69166e1ae3210ea778bcf3a5047 (patch) | |
tree | 54c08ff50176b7de0e4810a4fdaf1a0ff5207f60 /java | |
parent | 776c3222239e23493d015c105ee95b3ae21214e0 (diff) | |
download | freebsd-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')
-rw-r--r-- | java/javavmwrapper/Makefile | 2 | ||||
-rw-r--r-- | java/javavmwrapper/src/javavmwrapper.sh | 7 |
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 |