1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Fix Windows paths.

This commit is contained in:
Cedric Beust 2016-02-18 20:51:46 -08:00
parent 801672a872
commit 162b0b4111

View file

@ -78,7 +78,7 @@ public class JarUtils {
entry = stream.nextEntry entry = stream.nextEntry
} }
} else { } else {
val entryFileName = file.to(foundFile.path).path val entryFileName = file.to(foundFile.path).path.replace("\\", "/")
val entry = JarEntry(entryFileName) val entry = JarEntry(entryFileName)
entry.time = foundFile.lastModified() entry.time = foundFile.lastModified()
addEntry(FileInputStream(localFile), entry, outputStream, onError) addEntry(FileInputStream(localFile), entry, outputStream, onError)