From 0315623e6ba16b5455fe688fdb94ec97f0c4f673 Mon Sep 17 00:00:00 2001 From: Snjezana Peco Date: Mon, 6 Jul 2020 01:48:29 +0200 Subject: [PATCH] Fix build failure on windows (#1498) Fixes #1497 Signed-off-by: Snjezana Peco --- org.eclipse.jdt.ls.core/pom.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jdt.ls.core/pom.xml b/org.eclipse.jdt.ls.core/pom.xml index 79a5af1ab2..b80ecf27dc 100644 --- a/org.eclipse.jdt.ls.core/pom.xml +++ b/org.eclipse.jdt.ls.core/pom.xml @@ -48,9 +48,10 @@ def versionUrl = new URL("https://services.gradle.org/versions/all") def versionStr = versionUrl.text; - def versionsFile = new File("${basedir}/gradle/checksums/versions.json") + def versionsFile = new File(project.basedir.absolutePath, "gradle/checksums/versions.json") versionsFile.parentFile.mkdirs() //just in case versionsFile.write(versionStr) + println "Wrote to ${versionsFile}" def versions = new JsonSlurper().parseText(versionStr); class Checksum { String wrapperChecksumUrl; String sha256 } @@ -70,8 +71,9 @@ } } def json = JsonOutput.toJson(checksums) - def checksumsFile = new File("${basedir}/gradle/checksums/checksums.json") + def checksumsFile = new File(project.basedir.absolutePath, "gradle/checksums/checksums.json") checksumsFile.write(JsonOutput.prettyPrint(json)) + println "Wrote to ${checksumsFile}"