make nbr the owning module of runtime accesories

This commit is contained in:
Jonathan Shook
2021-08-10 14:34:53 -05:00
parent ef650c769f
commit bf26583b7f
83 changed files with 496 additions and 28 deletions

35
nbr/appimage/skel/usr/bin/nbr Executable file
View 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