mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-31 13:26:06 -05:00
Make SourceRemapper threaded (#446)
Should be a little bit faster, but nothing magicial.
This commit is contained in:
@@ -24,7 +24,10 @@
|
||||
|
||||
package net.fabricmc.loom.task;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.gradle.api.tasks.Internal;
|
||||
import org.gradle.api.tasks.TaskAction;
|
||||
|
||||
import net.fabricmc.loom.util.SourceRemapper;
|
||||
|
||||
@@ -35,4 +38,13 @@ public class RemapAllSourcesTask extends AbstractLoomTask {
|
||||
public SourceRemapper getSourceRemapper() {
|
||||
return sourceRemapper;
|
||||
}
|
||||
|
||||
@TaskAction
|
||||
public void remap() {
|
||||
try {
|
||||
sourceRemapper.remapAll();
|
||||
} catch (IOException exception) {
|
||||
throw new RuntimeException("Failed to remap mod", exception);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user