Delete output jar before running tiny-remapper

This commit is contained in:
Jason Penilla 2022-03-03 17:04:10 -07:00
parent c1bd340a72
commit 091a3a2a76
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -192,6 +192,7 @@ object TinyRemapper {
jvmArgs: List<String> = listOf("-Xmx1G"),
) {
ensureDeleted(logFile)
ensureDeleted(outputJar)
val args = argsList.expandArgs(
input = inputJar.absolutePathString(),
@ -203,6 +204,7 @@ object TinyRemapper {
)
ensureParentExists(logFile)
ensureParentExists(outputJar)
launcher.runJar(remapper, workingDir, logFile, jvmArgs = jvmArgs, args = args.toTypedArray())
}
}