Fix JAVA_HOME on osx for gradle invocations
Bug: 230005411
Change-Id: I80564694295b608bae9ae4ecc7d9b0ce4a5d3648
diff --git a/tools/gradle.py b/tools/gradle.py
index 19fa773..92503a7 100755
--- a/tools/gradle.py
+++ b/tools/gradle.py
@@ -59,10 +59,10 @@
GRADLE, GRADLE_TGZ, GRADLE_SHA1, 'Gradle binary')
def EnsureJdk():
- jdkHome = jdk.GetJdkHome()
- jdkTgz = jdkHome + '.tar.gz'
+ jdkRoot = jdk.GetJdkRoot()
+ jdkTgz = jdkRoot + '.tar.gz'
jdkSha1 = jdkTgz + '.sha1'
- utils.EnsureDepFromGoogleCloudStorage(jdkHome, jdkTgz, jdkSha1, 'JDK')
+ utils.EnsureDepFromGoogleCloudStorage(jdkRoot, jdkTgz, jdkSha1, 'JDK')
def EnsureDeps():
EnsureGradle()