From 3a3dddc98eb87618dcb5c0463aed34c0214e65df Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Mon, 24 May 2021 09:53:38 -0700 Subject: [PATCH] Fix gradlew in case JAVA_HOME is not set (#973) Change-Id: Iacb38823ec4cdd54dcc33e489b41ee8390a27e88 --- gradlew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradlew b/gradlew index 41e04163077..b70597b6863 100755 --- a/gradlew +++ b/gradlew @@ -120,7 +120,7 @@ if [ ! -r "${WRAPPER_JAR_PATH}" ]; then if [ -e "$javaClass" ]; then if [ ! -e "$APP_HOME/gradle/wrapper/GradleWrapperDownloader.class" ]; then # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") + ("${JAVACMD}c" "$javaClass") fi if [ -e "$APP_HOME/gradle/wrapper/GradleWrapperDownloader.class" ]; then ("$JAVACMD" -cp gradle/wrapper GradleWrapperDownloader "$APP_HOME")