Skip to content

Commit

Permalink
[WFLY-4554] Instead of trying to escape the paths passed into the com…
Browse files Browse the repository at this point in the history
…mand line ensure jconsole is executed from JBOSS_HOME, this way our custom classpath can be relative.
  • Loading branch information
darranl committed Apr 24, 2015
1 parent b10b480 commit b9dd151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feature-pack/src/main/resources/content/bin/jconsole.sh
Expand Up @@ -74,8 +74,9 @@ fi

CLASSPATH=$JAVA_HOME/lib/jconsole.jar
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
CLASSPATH="$CLASSPATH:\""$JBOSS_HOME"\"/bin/client/jboss-cli-client.jar"
CLASSPATH=$CLASSPATH:./bin/client/jboss-cli-client.jar

echo CLASSPATH $CLASSPATH

cd "$JBOSS_HOME"
$JAVA_HOME/bin/jconsole -J-Djava.class.path="$CLASSPATH" "$@"

0 comments on commit b9dd151

Please sign in to comment.