Create parent directories in NameMapProcessor

Fixes #110.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 327a6f0e3f
commit 27f715ce13
  1. 2
      deob-processor/src/main/java/dev/openrs2/deob/processor/NameMapProcessor.kt

@ -96,6 +96,8 @@ class NameMapProcessor : AbstractProcessor() {
} }
if (env.processingOver()) { if (env.processingOver()) {
Files.createDirectories(mapPath.parent)
Files.newBufferedWriter(mapPath).use { writer -> Files.newBufferedWriter(mapPath).use { writer ->
mapper.writeValue(writer, NameMap(classes, fields, methods)) mapper.writeValue(writer, NameMap(classes, fields, methods))
} }

Loading…
Cancel
Save