Gradle: don't copy teavmdbg file to WEB-INF directory

(return this when deobfuscation functionality is implemented)
This commit is contained in:
Alexey Andreev 2023-03-06 11:42:21 +01:00
parent 0f8d36a080
commit ddab106c5a

View File

@ -173,12 +173,6 @@ public class TeaVMPlugin implements Plugin<Project> {
spec.from(project.files(outDir.map(dir -> new File(dir, relPath.get())))); spec.from(project.files(outDir.map(dir -> new File(dir, relPath.get()))));
spec.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE); spec.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
})); }));
task.with(project.copySpec(spec -> {
spec.into(relPath.map(path -> joinPath("WEB-INF", path)));
spec.include("*.teavmdbg");
spec.from(project.files(outDir.map(dir -> new File(dir, relPath.get()))));
spec.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
}));
} }
if (wasmAddedToWebApp) { if (wasmAddedToWebApp) {
task.dependsOn(project.getTasks().named(WASM_TASK_NAME)); task.dependsOn(project.getTasks().named(WASM_TASK_NAME));