From 8a4f06cdaff4442cfbf1f0fdd6471d967130d68c Mon Sep 17 00:00:00 2001 From: Pavel Punegov <32519625+PavelPunegov@users.noreply.github.com> Date: Fri, 26 Apr 2019 16:52:21 +0300 Subject: [PATCH] Escape backslash symbol in file path --- .../src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index bfd431714d7..95a60821c9a 100644 --- a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -115,7 +115,7 @@ abstract class KonanTest extends JavaExec { def sourcesWriter = sources.newWriter() filesToCompile.each { f -> sourcesWriter.write(f.chars().any { Character.isWhitespace(it) } - ? "\"$f\"\n" // escape file name + ? "\"${f.replace("\\", "\\\\")}\"\n" // escape file name : "$f\n") } sourcesWriter.close()