aboutsummaryrefslogtreecommitdiff
path: root/java/javavmwrapper
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-11-26 13:00:50 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-11-26 13:00:50 +0000
commit3d902715291dec6655a738bf5da18dec5024e838 (patch)
tree147c417405999e1b67c1e6e9d2be093f5940568e /java/javavmwrapper
parentb18b8c855edad5313083f06e684feccb90be0ce1 (diff)
downloadports-3d902715291dec6655a738bf5da18dec5024e838.tar.gz
ports-3d902715291dec6655a738bf5da18dec5024e838.zip
Use "$@" instead of "$*" to pass parameters to a subshell. This ensures that
parameters with spaces are passed correctly. PR: 32191 Submitted by: Ben Suffolk <ben.suffolk@orange.co.uk>
Notes
Notes: svn path=/head/; revision=50565
Diffstat (limited to 'java/javavmwrapper')
-rw-r--r--java/javavmwrapper/Makefile2
-rw-r--r--java/javavmwrapper/src/javavmwrapper.sh5
2 files changed, 3 insertions, 4 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile
index 19e023ed0476..2df0c9dc8af3 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 16e9a235b9f5..b82d3699afdf 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