mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Workaround for FileSystemAlreadyExists errors (#17)
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
package net.fabricmc.loom.build;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -106,6 +107,7 @@ public class JarRemapper {
|
||||
project.getLogger().info(":remapper output -> " + data.output.getFileName().toString());
|
||||
|
||||
try {
|
||||
Files.deleteIfExists(data.output);
|
||||
outputConsumer = new OutputConsumerPath.Builder(data.output).build();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Failed to create remapper output " + data.output.getFileName().toString(), e);
|
||||
|
||||
Reference in New Issue
Block a user