We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f518afe commit ac565f6Copy full SHA for ac565f6
dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/util/JdkDownloader.java
@@ -17,6 +17,7 @@ public class JdkDownloader {
17
private static final String OS;
18
private static final String JDK_URL;
19
private static boolean jdkDownloaded = false;
20
+ private static final String REGEX_TAR_GZ = ".tar.gz";
21
22
static {
23
// handle for all os
@@ -47,7 +48,7 @@ public static Path getCachedJdk() throws IOException {
47
48
49
switch (OS) {
50
case "linux":
- cacheName = "jdk-17.0.2";
51
+ cacheName = Paths.get(JDK_URL).getFileName().toString().split(REGEX_TAR_GZ)[0];
52
break;
53
case "mac os x":
54
case "mac":
0 commit comments