mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
make nbr the owning module of runtime accesories
This commit is contained in:
35
nbr/appimage/skel/usr/bin/nbr
Executable file
35
nbr/appimage/skel/usr/bin/nbr
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
#set -x
|
||||
DIR="$(dirname "$(readlink -f "$0")")"
|
||||
if [ "$1" = "--wrapper-help" ]
|
||||
then
|
||||
echo "OPTIONS:"
|
||||
echo " # run the bundled JRE with -version"
|
||||
echo " --java-version"
|
||||
echo " # run the app with JDWP debugging support, with suspend=n"
|
||||
echo " --DN"
|
||||
echo " # run the app with JDWP debugging support, with suspend=y"
|
||||
echo " --DY"
|
||||
echo " # set additional JRE options ..."
|
||||
echo " JAVA_OPTS=... $0 ..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "--java-version" ]
|
||||
then
|
||||
shift
|
||||
$DIR/jre/bin/java -version
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" = "-DN" ]
|
||||
then
|
||||
shift
|
||||
exec $DIR/jre/bin/java -Dnashorn.args="--no-deprecation-warning" ${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar $DIR/nbr.jar "$@"
|
||||
elif [ "$1" = "-DY" ]
|
||||
then
|
||||
shift
|
||||
exec $DIR/jre/bin/java -Dnashorn.args="--no-deprecation-warning" ${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar $DIR/nbr.jar "$@"
|
||||
else
|
||||
exec $DIR/jre/bin/java -Dnashorn.args="--no-deprecation-warning" ${JAVA_OPTS} -jar $DIR/nbr.jar "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user