Deprecation indicators and removed unused resources

This commit is contained in:
Stef Tervelde
2024-11-14 10:39:08 +01:00
parent e082481594
commit 07f05f39c6
2 changed files with 3 additions and 4 deletions
+1 -4
View File
@@ -13,9 +13,6 @@ sourceSets{
java{
srcDirs("src", "generated")
}
resources{
srcDirs("../build/shared/", "src/main/resources/")
}
}
}
@@ -33,7 +30,7 @@ dependencies{
implementation("org.jsoup:jsoup:1.17.2")
}
// TODO: This is a temporary workaround until the resources are properly handled
tasks.register<Copy>("extraResources"){
from(".")
include("keywords.txt")
@@ -62,6 +62,7 @@ public class JavaMode extends Mode {
File resourcesFolder;
@Deprecated
@Override
public File[] getKeywordFiles() {
var url = JavaMode.class.getClassLoader().getResource("keywords.txt");
@@ -82,6 +83,7 @@ public class JavaMode extends Mode {
}
return new File[] { new File(folder, "keywords.txt") };
}
@Deprecated
public static void copyFromJar(String source, final Path target) throws URISyntaxException, IOException {
var resource = JavaMode.class.getResource("").toURI();
var fileSystem = FileSystems.newFileSystem(