Skip to content

Commit

Permalink
[GERONIMO-6859] for windows switch to zip urls instead of tar.gz whic…
Browse files Browse the repository at this point in the history
…h don't exist
  • Loading branch information
rmannibucau committed Feb 7, 2024
1 parent 40e65bc commit 2820558
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,12 @@ private String buildDownloadUrl(final String graalPlatform) {
graalDownloadUrl;
if (graalVersion.endsWith("-graalce")) {
graalJavaVersion = graalVersion.substring(0, graalVersion.length() - "-graalce".length());
baseUrl = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-" + graalJavaVersion + "/graalvm-community-jdk-" + graalJavaVersion + "_${githubPlatform2}_bin.tar.gz";
baseUrl = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-" + graalJavaVersion + "/graalvm-community-jdk-" + graalJavaVersion + "_${githubPlatform2}_bin." +
(System.getProperty("os.name", "").contains("win") ? "zip" : "tar.gz");
} else if (graalVersion.endsWith("-graal-oracle")) {
graalJavaVersion = graalVersion.substring(0, graalVersion.length() - "-graal-oracle".length());
baseUrl = "https://download.oracle.com/graalvm/" + graalJavaVersion + "/latest/graalvm-jdk-" + graalJavaVersion + "_${githubPlatform2}_bin.tar.gz";
baseUrl = "https://download.oracle.com/graalvm/" + graalJavaVersion + "/latest/graalvm-jdk-" + graalJavaVersion + "_${githubPlatform2}_bin." +
(System.getProperty("os.name", "").contains("win") ? "zip" : "tar.gz");
}
return baseUrl
.replace("${graalSimpleVersion}", graalSimpleVersion)
Expand Down

0 comments on commit 2820558

Please sign in to comment.