diff options
author | PandaNinjas <admin@malwarefight.gq> | 2023-02-12 20:38:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 20:38:27 +0000 |
commit | 6c975fbee1038b3da79456c38ebb739ab0aa8cd5 (patch) | |
tree | 6bbb84064990b025fd58c326ba00187024f870c6 /gradlew | |
parent | 5c5a0a52bc7313bc1add24563b02018ae1cbe4a9 (diff) | |
parent | f4484d9354911ba4667933ac3eff6628b83ae597 (diff) | |
download | NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.tar.gz NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.tar.bz2 NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.zip |
v1.1.0 release
v1.1.0 release: All the King's Horses.
Diffstat (limited to 'gradlew')
-rwxr-xr-x | gradlew | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh ############################################################################## ## @@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS="" # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" -warn ( ) { +warn () { echo "$*" } -die ( ) { +die () { echo echo "$*" echo @@ -154,16 +154,19 @@ if $cygwin ; then esac fi -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " } -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong -if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then cd "$(dirname "$0")" fi -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" +exec "$JAVACMD" "$@" |