diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-12-03 14:43:07 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-12-03 14:43:07 +0000 |
commit | 6bc46aa6e7c294d841f65c4b7a662e7ec988400c (patch) | |
tree | d201563c6d06c1c38be5f84c6b11f295ef2901d9 /java/javavmwrapper/src | |
parent | 1413a5c6d0fb3c44d2e65fec7130ce39924ddcb1 (diff) | |
download | FreeBSD-ports-6bc46aa6e7c294d841f65c4b7a662e7ec988400c.zip FreeBSD-ports-6bc46aa6e7c294d841f65c4b7a662e7ec988400c.tar.gz |
Revert previous fix - it was not properly thought out.
Submitted by: ted@tednet.nl (Ted Lindgreen)
Diffstat (limited to 'java/javavmwrapper/src')
-rw-r--r-- | java/javavmwrapper/src/javavmwrapper.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh index b82d369..16e9a23 100644 --- a/java/javavmwrapper/src/javavmwrapper.sh +++ b/java/javavmwrapper/src/javavmwrapper.sh @@ -19,6 +19,7 @@ # # MAINTAINER= sobomax@FreeBSD.org +ARGS="${*}" PREFIX="%%PREFIX%%" CONF="${PREFIX}/etc/javavms" IAM=`basename "${0}"` @@ -101,7 +102,7 @@ unset JAVA_HOME # First check if JAVAVM environment variable is set if [ x"${JAVAVM}" != x"" ]; then - tryrunVM "${JAVAVM}" "${@}" + tryrunVM "${JAVAVM}" "${ARGS}" fi # Then try to make sure that ${CONF} exists @@ -115,7 +116,7 @@ VMS=`/usr/bin/sed 's|#.*||' < "${CONF}" | uniq` # Finally try to run one of the ${VMS} for JAVAVM in ${VMS}; do - tryrunVM "${JAVAVM}" "${@}"; + tryrunVM "${JAVAVM}" "${ARGS}"; done echo "${IAM}: error: no suitable JavaVMs found" >&2 |