diff --git a/src/main/kotlin/de/nanogiants/gradle/ext/TaskExt.kt b/src/main/kotlin/de/nanogiants/gradle/ext/TaskExt.kt index 258d1f6..c15ae26 100644 --- a/src/main/kotlin/de/nanogiants/gradle/ext/TaskExt.kt +++ b/src/main/kotlin/de/nanogiants/gradle/ext/TaskExt.kt @@ -42,7 +42,7 @@ internal fun Task.addRenameMappingAction(oldOutput: File, newOutput: String, kee println(newOutput) doLast { - val newFile = File(oldOutput.absolutePath.replaceAfterLast("/", newOutput)) + val newFile = File(oldOutput.absolutePath.replaceAfterLast(File.separator, newOutput)) if (oldOutput.exists()) { oldOutput.copyTo(newFile, overwrite = true)