diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-01-31 15:21:29 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-31 15:27:26 +0100 |
commit | ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4 (patch) | |
tree | 9a93046062e559bacbce74b9f8c4ad4bb88a086b | |
parent | 79ec42607f3bc090ef40547a01aabcd1cd55886e (diff) | |
download | dokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.tar.gz dokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.tar.bz2 dokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.zip |
Fix CrossPlatformExec.kt
-rw-r--r-- | buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt b/buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt index feb32cac..a68329d8 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt @@ -20,16 +20,12 @@ open class CrossPlatformExec : AbstractExecTask<CrossPlatformExec>(CrossPlatform commandLine[0] = findCommand(commandLine[0]) } - if (isWindows) { - if (commandLine.isNotEmpty() && commandLine[0].isNotBlank()) { - commandLine - } - commandLine.add(0, "/c") - commandLine.add(0, "cmd") + if (isWindows && commandLine.isNotEmpty() && commandLine[0].isNotBlank()) { + this.commandLine = listOf("cmd", "/c") + commandLine + } else { + this.commandLine = commandLine } - this.commandLine = commandLine - super.exec() } |