Added tooling to create a standalone binary, using one neat hack!
This commit is contained in:
parent
e97ace97c5
commit
a0a05786ae
4 changed files with 54 additions and 9 deletions
8
resources/sh/stub.sh
Normal file
8
resources/sh/stub.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
MYSELF=`which "$0" 2>/dev/null`
|
||||
[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0"
|
||||
java=java
|
||||
if test -n "$JAVA_HOME"; then
|
||||
java="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
exec "$java" $java_args -jar $MYSELF "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue