From 560bc6be9e3a898c51f2e65221680abbafb4d2c0 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 14 Sep 2009 09:51:36 +0000 Subject: QPID-2099 : Updated qpid-run to use QPID_PNAME as the value for the system property -DPNAME="". Ensured value is quoted to allow spaces in QPID_PNAME. i.e QPID_PNAME="Production Broker" git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814544 13f79535-47bb-0310-9956-ffa450edef68 --- java/common/bin/qpid-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/common') diff --git a/java/common/bin/qpid-run b/java/common/bin/qpid-run index 0b5070d937..e171f91297 100755 --- a/java/common/bin/qpid-run +++ b/java/common/bin/qpid-run @@ -59,7 +59,7 @@ fi #Set to help us get round the manifold problems of ps/pgrep on various #platforms which gather up to prevent qpid_stop from working ..... if [ -z "$QPID_PNAME" ]; then - export QPID_PNAME=" -DPNAME=QPBRKR" + export QPID_PNAME="QPBRKR" fi if [ -z "$QPID_HOME" ]; then @@ -259,6 +259,6 @@ if $cygwin; then JAVA=$(cygpath -u $JAVA) fi -COMMAND=($JAVA $JAVA_VM $QPID_PNAME $JAVA_GC $JAVA_MEM $SYSTEM_PROPS $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") +COMMAND=($JAVA $JAVA_VM -DPNAME=\"$QPID_PNAME\" $JAVA_GC $JAVA_MEM $SYSTEM_PROPS $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") DISPATCH -- cgit v1.2.1