mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Fix custom decompiler test
This commit is contained in:
@@ -26,15 +26,14 @@ package net.fabricmc.loom.test.integration.buildSrc.decompile
|
||||
|
||||
import java.nio.file.Path
|
||||
|
||||
import com.google.common.io.Files
|
||||
|
||||
import net.fabricmc.loom.api.decompilers.DecompilationMetadata
|
||||
import net.fabricmc.loom.api.decompilers.LoomDecompiler
|
||||
import net.fabricmc.loom.util.ZipUtils
|
||||
|
||||
class CustomDecompiler implements LoomDecompiler {
|
||||
@Override
|
||||
void decompile(Path compiledJar, Path sourcesDestination, Path linemapDestination, DecompilationMetadata metaData) {
|
||||
println("Running custom decompiler")
|
||||
Files.touch(sourcesDestination.toFile())
|
||||
ZipUtils.add(sourcesDestination, "/META-INF/test.txt", "test")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user