Mercurial > hg > release > heapstats-2.1
view analyzer/cli/heapstats-cli.in @ 252:6fd99b983c37
Bug 3464: Fix launcher and attacher to use on Ubuntu
Reviewed-by: yasuenag
https://github.com/HeapStats/heapstats/pull/124
author | KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp> |
---|---|
date | Tue, 10 Oct 2017 23:39:34 +0900 |
parents | 15d3e88ab711 |
children |
line wrap: on
line source
#!/bin/bash prefix=@prefix@ exec_prefix=@exec_prefix@ libexecdir=@libexecdir@ CLI_JAR="$libexecdir/heapstats-cli.jar" # Check CLI. if test ! -f "$CLI_JAR" ; then echo "CLI not found at $libexecdir, try to find heapstats-cli.jar instead" CLI_JAR=$(find . -name "heapstats-cli.jar" | head -n 1) if test ! -f "$CLI_JAR" ; then echo "CLI not found" exit 2 fi fi if test -x $JAVA_HOME/bin/java; then $JAVA_HOME/bin/java $JAVA_OPTS -jar $CLI_JAR $@ elif test -z "$JAVA_HOME"; then echo "Set \$JAVA_HOME to run heapstats-cli" else echo "Set \$JAVA_HOME correctly to run heapstats-cli" fi