summaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorGravatar modmuss502022-12-07 19:42:55 +0000
committerGravatar GitHub2022-12-07 19:42:55 +0000
commit2d027a80fa52adf1dde409b3f112c465a79127db (patch)
treee4fffbbab64001b54d7882d92fd56532ee09da82 /gradlew
parentMake enum methods `values` and `valueOf` unmappable (#470) (diff)
downloadenigma-2d027a80fa52adf1dde409b3f112c465a79127db.tar.gz
enigma-2d027a80fa52adf1dde409b3f112c465a79127db.tar.xz
enigma-2d027a80fa52adf1dde409b3f112c465a79127db.zip
Update dependencies and Gradle
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew28
1 files changed, 19 insertions, 9 deletions
diff --git a/gradlew b/gradlew
index c53aefaa..65dcd68d 100755
--- a/gradlew
+++ b/gradlew
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# 3#
4# Copyright © 2015-2021 the original authors. 4# Copyright © 2015-2021 the original authors.
5# 5#
6# Licensed under the Apache License, Version 2.0 (the "License"); 6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License. 7# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
32# Busybox and similar reduced shells will NOT work, because this script 32# Busybox and similar reduced shells will NOT work, because this script
33# requires all of these POSIX shell features: 33# requires all of these POSIX shell features:
34# * functions; 34# * functions;
35# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 35# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36# «${var#prefix}», «${var%suffix}», and «$( cmd )»; 36# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37# * compound commands having a testable exit status, especially «case»; 37# * compound commands having a testable exit status, especially «case»;
38# * various built-in commands including «command», «set», and «ulimit». 38# * various built-in commands including «command», «set», and «ulimit».
39# 39#
40# Important for patching: 40# Important for patching:
41# 41#
@@ -55,7 +55,7 @@
55# Darwin, MinGW, and NonStop. 55# Darwin, MinGW, and NonStop.
56# 56#
57# (3) This script is generated from the Groovy template 57# (3) This script is generated from the Groovy template
58# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 58# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59# within the Gradle project. 59# within the Gradle project.
60# 60#
61# You can find Gradle at https://github.com/gradle/gradle/. 61# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
80 esac 80 esac
81done 81done
82 82
83APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 83# This is normally unused
84 84# shellcheck disable=SC2034
85APP_NAME="Gradle"
86APP_BASE_NAME=${0##*/} 85APP_BASE_NAME=${0##*/}
86APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87 87
88# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 88# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 89DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 143if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 case $MAX_FD in #( 144 case $MAX_FD in #(
145 max*) 145 max*)
146 # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147 # shellcheck disable=SC3045
146 MAX_FD=$( ulimit -H -n ) || 148 MAX_FD=$( ulimit -H -n ) ||
147 warn "Could not query maximum file descriptor limit" 149 warn "Could not query maximum file descriptor limit"
148 esac 150 esac
149 case $MAX_FD in #( 151 case $MAX_FD in #(
150 '' | soft) :;; #( 152 '' | soft) :;; #(
151 *) 153 *)
154 # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155 # shellcheck disable=SC3045
152 ulimit -n "$MAX_FD" || 156 ulimit -n "$MAX_FD" ||
153 warn "Could not set maximum file descriptor limit to $MAX_FD" 157 warn "Could not set maximum file descriptor limit to $MAX_FD"
154 esac 158 esac
@@ -205,6 +209,12 @@ set -- \
205 org.gradle.wrapper.GradleWrapperMain \ 209 org.gradle.wrapper.GradleWrapperMain \
206 "$@" 210 "$@"
207 211
212# Stop when "xargs" is not available.
213if ! command -v xargs >/dev/null 2>&1
214then
215 die "xargs is not available"
216fi
217
208# Use "xargs" to parse quoted args. 218# Use "xargs" to parse quoted args.
209# 219#
210# With -n1 it outputs one arg per line, with the quotes and backslashes removed. 220# With -n1 it outputs one arg per line, with the quotes and backslashes removed.