From 162b0b4111bc3c8b33004443f3ecf6df9e680412 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 18 Feb 2016 20:51:46 -0800 Subject: [PATCH] Fix Windows paths. --- .../src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt index 7f445ca2..87ec9e80 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt @@ -78,7 +78,7 @@ public class JarUtils { entry = stream.nextEntry } } else { - val entryFileName = file.to(foundFile.path).path + val entryFileName = file.to(foundFile.path).path.replace("\\", "/") val entry = JarEntry(entryFileName) entry.time = foundFile.lastModified() addEntry(FileInputStream(localFile), entry, outputStream, onError)