diff options
-rw-r--r-- | java/javavmwrapper/Makefile | 2 | ||||
-rw-r--r-- | java/javavmwrapper/src/javavmwrapper.sh | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile index 19e023ed047..2df0c9dc8af 100644 --- a/java/javavmwrapper/Makefile +++ b/java/javavmwrapper/Makefile @@ -8,7 +8,7 @@ # PORTNAME= javavmwrapper -PORTVERSION= 1.1 +PORTVERSION= 1.2 CATEGORIES= java MASTER_SITES= # none DISTFILES= # none diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh index 16e9a235b9f..b82d3699afd 100644 --- a/java/javavmwrapper/src/javavmwrapper.sh +++ b/java/javavmwrapper/src/javavmwrapper.sh @@ -19,7 +19,6 @@ # # MAINTAINER= sobomax@FreeBSD.org -ARGS="${*}" PREFIX="%%PREFIX%%" CONF="${PREFIX}/etc/javavms" IAM=`basename "${0}"` @@ -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 |