Skip to content

Commit 30eb312

Browse files
committed
PreprocessTask: Remove stale files in output folder
1 parent 59a641a commit 30eb312

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/com/replaymod/gradle/preprocess/PreprocessTask.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ open class PreprocessTask : DefaultTask() {
153153
mappedSources = javaTransformer.remap(sources)
154154
}
155155

156+
project.delete(outPath)
157+
156158
val commentPreprocessor = CommentPreprocessor(vars.get())
157159
project.fileTree(source).forEach { file ->
158160
val relPath = inPath.relativize(file.toPath())

0 commit comments

Comments
 (0)