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

Investigate TeamCity build failures.

This commit is contained in:
Cedric Beust 2017-03-08 15:56:50 -08:00
parent 443847c171
commit 5ea2fe30b0

View file

@ -265,9 +265,12 @@ class KFiles {
} }
fun saveFile(file: File, text: String) { fun saveFile(file: File, text: String) {
file.absoluteFile.parentFile.mkdirs() if (file.absoluteFile.parentFile.mkdirs()) {
file.writeText(text) file.writeText(text)
kobaltLog(2, "Created $file") kobaltLog(2, "Created $file")
} else {
warn("Couldn't create directory to save $file")
}
} }
private fun isWindows() = System.getProperty("os.name").contains("Windows") private fun isWindows() = System.getProperty("os.name").contains("Windows")