aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2023-01-06 18:10:36 +0100
committerFlorian Schmaus <flow@gentoo.org>2023-01-06 18:10:36 +0100
commit376931ad15509f969b55fdd0a4177ebaaec1d1b5 (patch)
treeab86238154956517e07f80fa1999fdad8f65ff40
parentdev-java/openjfx: add version using gradle.eclass (diff)
downloadjava-376931ad15509f969b55fdd0a4177ebaaec1d1b5.tar.gz
java-376931ad15509f969b55fdd0a4177ebaaec1d1b5.tar.bz2
java-376931ad15509f969b55fdd0a4177ebaaec1d1b5.zip
gradle.eclass: update
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r--eclass/gradle.eclass15
1 files 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