aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-01-31 15:21:29 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-31 15:27:26 +0100
commitec8e0aa7dbdc74c381dfe9c012711a895ccac6d4 (patch)
tree9a93046062e559bacbce74b9f8c4ad4bb88a086b /buildSrc/src
parent79ec42607f3bc090ef40547a01aabcd1cd55886e (diff)
downloaddokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.tar.gz
dokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.tar.bz2
dokka-ec8e0aa7dbdc74c381dfe9c012711a895ccac6d4.zip
Fix CrossPlatformExec.kt
Diffstat (limited to 'buildSrc/src')
-rw-r--r--buildSrc/src/main/kotlin/org/jetbrains/CrossPlatformExec.kt12
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()
}