This should be done now

This commit is contained in:
Juuz
2022-01-19 17:02:55 +02:00
parent 1bedce942e
commit 47cbcbcd36
29 changed files with 339 additions and 116 deletions

View File

@@ -295,7 +295,11 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask implements De
}
static File getMappedJarFileWithSuffix(RegularFileProperty runtimeJar, String suffix) {
String path = runtimeJar.get().getAsFile().getAbsolutePath();
return getMappedJarFileWithSuffix(runtimeJar.get().getAsFile(), suffix);
}
public static File getMappedJarFileWithSuffix(File runtimeJar, String suffix) {
String path = runtimeJar.getAbsolutePath();
if (!path.toLowerCase(Locale.ROOT).endsWith(".jar")) {
throw new RuntimeException("Invalid mapped JAR path: " + path);