mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2453 - fixing classpath so we can run something like '/activemq console xbean:conf/activemq-stomp.xml'
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@963264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67699f2a18
commit
70971237bf
|
@ -295,7 +295,7 @@ if [ "$OSTYPE" = "cygwin" ];then
|
|||
fi
|
||||
|
||||
# Set default classpath
|
||||
ACTIVEMQ_CLASSPATH="${ACTIVEMQ_CONFIG_DIR}/;${ACTIVEMQ_CLASSPATH}"
|
||||
ACTIVEMQ_CLASSPATH="${ACTIVEMQ_CONFIG_DIR};${ACTIVEMQ_CLASSPATH}"
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
|
@ -333,7 +333,7 @@ invokeJar(){
|
|||
fi
|
||||
# Execute java binary
|
||||
if [ -n "$PIDFILE" ] && [ "$PIDFILE" != "stop" ];then
|
||||
$DOIT_PREFIX "cd $ACTIVEMQ_CONFIG_DIR; $JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
$DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
-Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
|
||||
-Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
|
||||
-Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
|
||||
|
@ -344,7 +344,7 @@ invokeJar(){
|
|||
echo \"INFO: pidfile created : '$PIDFILE' (pid '\$APID')\";exit \$RET" $DOIT_POSTFIX
|
||||
RET="$?"
|
||||
elif [ -n "$PIDFILE" ] && [ "$PIDFILE" == "stop" ];then
|
||||
$DOIT_PREFIX "cd $ACTIVEMQ_CONFIG_DIR; $JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
$DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
-Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
|
||||
-Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
|
||||
-Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
|
||||
|
@ -352,7 +352,7 @@ invokeJar(){
|
|||
-jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS &"
|
||||
RET="$?"
|
||||
else
|
||||
$DOIT_PREFIX "cd $ACTIVEMQ_CONFIG_DIR; $JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
$DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
|
||||
-Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
|
||||
-Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
|
||||
-Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
|
||||
|
@ -590,4 +590,4 @@ case "$1" in
|
|||
;;
|
||||
*)
|
||||
invoke_task
|
||||
esac
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue