Skip to content

Commit

Permalink
Remove "beta" URLs for RISC-V
Browse files Browse the repository at this point in the history
Adoptium offers 17-LTS now.
  • Loading branch information
tresf committed Jul 19, 2024
1 parent 32a66ee commit 2aba19c
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/qz/build/jlink/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ public Url(Vendor vendor) {
pattern = VENDOR_URL_MAP.get(vendor);
}

/**
* Fix URLs for beta/alpha/nightly release
*/
public void applyBetaPattern() {
switch(vendor) {
case ECLIPSE:
/*
BEFORE: jdk-21.0.1+12/
AFTER: jdk-21.0.1+12-ea-beta/
BEFORE: OpenJDK21U-jdk_riscv64_linux_hotspot_21-0-1-12.tar.gz
AFTER: OpenJDK21U-jdk_riscv64_linux_hotspot_ea_21-0-1-12.tar.gz
*/
pattern = pattern.replaceAll("%s/OpenJDK%sU-jdk_%s_%s_%s", "%s-ea-beta/OpenJDK%sU-jdk_%s_%s_%s_ea");
break;
default:
throw new UnsupportedOperationException("Vendor " + vendor + " is missing a configuration beta URLs");
}
}

public String format(Arch arch, Platform platform, String gcEngine, Version javaSemver, String javaVersion, String gcVer) throws UnsupportedEncodingException {
Url pattern = new Url(vendor);
String urlArch = vendor.getUrlArch(arch);
Expand All @@ -69,15 +49,6 @@ public String format(Arch arch, Platform platform, String gcEngine, Version java

int javaMajor = javaSemver.getMajorVersion();

switch(arch) {
// TODO: Remove when RISCV is offered as stable
case RISCV64:
pattern.applyBetaPattern();
urlJavaVersion = urlJavaVersion.replace(".", "-").replace("_", "-");
default:
// Do nothing
}

switch(vendor) {
case BELLSOFT:
return String.format(pattern.pattern, urlJavaVersionEncode, urlJavaVersionEncode, urlPlatform, urlArch, fileExt);
Expand Down

0 comments on commit 2aba19c

Please sign in to comment.