Skip to content

Commit

Permalink
Don't print classpath when --help argument is given (#101)
Browse files Browse the repository at this point in the history
Fixes #100
  • Loading branch information
frant-hartm authored Aug 17, 2021
1 parent fd17c5c commit 2ddeae2
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions distro/src/bin/hz
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,22 @@ export CLASSPATH="$CLASSPATH:$HAZELCAST_HOME/bin/download:$HAZELCAST_HOME/bin/do

HZ_CMD="${JAVA} -cp ${CLASSPATH} ${JAVA_OPTS_ARRAY[@]} -Dhazelcast.commandline.workingdirectory=${HAZELCAST_HOME} com.hazelcast.commandline.HazelcastCommandLine"


if [ "$1" = "start" ]; then

echo "########################################"
echo "# JAVA=$JAVA"
echo "# JAVA_OPTS=${JAVA_OPTS_ARRAY[*]}"
echo "# CLASSPATH=$CLASSPATH"
echo "########################################"
if [ "$1" = "start" ] ; then

for arg in "$@"
do
if [ "$arg" = "--help" ]; then
HELP=true
fi
done

if [ "$HELP" != "true" ] ; then
echo "########################################"
echo "# JAVA=$JAVA"
echo "# JAVA_OPTS=${JAVA_OPTS_ARRAY[*]}"
echo "# CLASSPATH=$CLASSPATH"
echo "########################################"
fi

${HZ_CMD} "$@" "--JAVA_OPTS=$J_OPTS"
else
Expand Down

0 comments on commit 2ddeae2

Please sign in to comment.