ARTEMIS-318 use profile JAVA_ARGS only for 'run'
This commit is contained in:
parent
2a1b974a95
commit
ced8ba2add
|
@ -105,6 +105,11 @@ if $cygwin ; then
|
||||||
CLASSPATH=`cygpath --windows "$CLASSPATH"`
|
CLASSPATH=`cygpath --windows "$CLASSPATH"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Empty JAVA_ARGS unless the command is 'run' or 'data'. See https://issues.apache.org/jira/browse/ARTEMIS-318.
|
||||||
|
if [ $1 != "run" -a $1 != "data" ]; then
|
||||||
|
JAVA_ARGS=""
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$JAVACMD" $JAVA_ARGS $ARTEMIS_CLUSTER_PROPS \
|
exec "$JAVACMD" $JAVA_ARGS $ARTEMIS_CLUSTER_PROPS \
|
||||||
-classpath "$CLASSPATH" \
|
-classpath "$CLASSPATH" \
|
||||||
-Dartemis.home="$ARTEMIS_HOME" \
|
-Dartemis.home="$ARTEMIS_HOME" \
|
||||||
|
|
Loading…
Reference in New Issue