ARTEMIS-318 use profile JAVA_ARGS only for 'run'

This commit is contained in:
jbertram 2015-12-14 15:22:32 -06:00
parent 2a1b974a95
commit ced8ba2add
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ if $cygwin ; then
CLASSPATH=`cygpath --windows "$CLASSPATH"`
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 \
-classpath "$CLASSPATH" \
-Dartemis.home="$ARTEMIS_HOME" \