File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/kotlin/com/replaymod/gradle/preprocess Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import org.jetbrains.kotlin.backend.common.push
1717import org.slf4j.LoggerFactory
1818import java.io.File
1919import java.io.Serializable
20+ import java.nio.file.Files
2021import java.util.regex.Pattern
2122
2223data class Keywords (
@@ -129,7 +130,9 @@ open class PreprocessTask : DefaultTask() {
129130 val dstMap = destinationMappings!! .readMappings()
130131 srcMap.join(dstMap.reverse())
131132 }
132- MappingFormats .SRG .write(mappings, project.buildDir.resolve(name).resolve(" mapping.srg" ).toPath())
133+ MappingFormats .SRG .write(mappings, project.buildDir.resolve(name).resolve(" mapping.srg" ).toPath().also {
134+ Files .createDirectories(it.parent)
135+ })
133136 val javaTransformer = Transformer (mappings)
134137 LOGGER .debug(" Remap Classpath:" )
135138 javaTransformer.classpath = classpath.files.mapNotNull {
You can’t perform that action at this time.
0 commit comments