commit: 376931ad15509f969b55fdd0a4177ebaaec1d1b5
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 6 17:10:36 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Jan 6 17:10:36 2023 +0000
URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=376931ad
gradle.eclass: update
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
eclass/gradle.eclass | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/eclass/gradle.eclass b/eclass/gradle.eclass
index 90e21905..f53fce44 100644
--- a/eclass/gradle.eclass
+++ b/eclass/gradle.eclass
@@ -9,8 +9,6 @@
# @BLURB: Utility functions for the gradle build system.
# @DESCRIPTION:
# Utility functions for the gradle build system.
-# WARNING: This eclass is currently experimental and
-# subject to change.
case ${EAPI} in
7|8) ;;
@@ -35,18 +33,19 @@ inherit edo
# @ECLASS_VARIABLE: EGRADLE_EXACT_VER
# @DEFAULT_UNSET
# @DESCRIPTION:
-# The exactly required gradle version.
+# The exact required gradle version.
# @ECLASS_VARIABLE: EGRADLE_PARALLEL
# @DESCRIPTION:
# Set to the 'true', the default, to invoke gradle with --parallel. Set
# to 'false' to disable parallel gradle builds.
-: ${EGRADLE_PARALLEL=true}
+: "${EGRADLE_PARALLEL=true}"
# @ECLASS_VARIABLE: EGRADLE_USER_HOME
# @DESCRIPTION:
-# Directroy used the user's home directory by gradle.
-EGRADLE_USER_HOME="${T}/gradle_user_home"
+# Directroy used as the user's home directory by gradle. Defaults to
+# ${T}/gradle_user_home
+: "${EGRADLE_USER_HOME="${T}/gradle_user_home"}"
# @ECLASS_VARIABLE: EGRADLE_OVERWRITE
# @USER_VARIABLE
@@ -81,7 +80,7 @@ gradle-set_EGRADLE() {
fi
if [[ -n ${EGRADLE_EXACT_VER} ]]; then
- ver_test "${ver}" -ne ${EGRADLE_EXACT_VER} && continue
+ ver_test "${ver}" -ne "${EGRADLE_EXACT_VER}" && continue
selected="${candidate}"
selected_ver="${ver}"
@@ -145,7 +144,7 @@ egradle() {
# TERM needed, otherwise gradle may fail on terms it does not know about
TERM=xterm \
edo \
- "${EGRADLE}" "${gradle_args[@]}" ${@}
+ "${EGRADLE}" "${gradle_args[@]}" "${@}"
}
fi