aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/groovy/org/jetbrains
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-01 17:34:45 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-01 17:34:45 +0300
commitf9bb94968e1d38af999e36839f41c777722bed70 (patch)
tree918ffed5ea7ff3aae60da08817c56613e69f3fc7 /buildSrc/src/main/groovy/org/jetbrains
parentd364b76f52f6aa2fb901055d1c688a65ad2f4f2d (diff)
downloaddokka-f9bb94968e1d38af999e36839f41c777722bed70.tar.gz
dokka-f9bb94968e1d38af999e36839f41c777722bed70.tar.bz2
dokka-f9bb94968e1d38af999e36839f41c777722bed70.zip
do not add ./ to command if linux
Diffstat (limited to 'buildSrc/src/main/groovy/org/jetbrains')
-rw-r--r--buildSrc/src/main/groovy/org/jetbrains/CrossPlatformExec.groovy10
1 files changed, 2 insertions, 8 deletions
diff --git a/buildSrc/src/main/groovy/org/jetbrains/CrossPlatformExec.groovy b/buildSrc/src/main/groovy/org/jetbrains/CrossPlatformExec.groovy
index a83d6f65..d3973a8a 100644
--- a/buildSrc/src/main/groovy/org/jetbrains/CrossPlatformExec.groovy
+++ b/buildSrc/src/main/groovy/org/jetbrains/CrossPlatformExec.groovy
@@ -61,14 +61,8 @@ class CrossPlatformExec extends AbstractExecTask {
if (!Files.isExecutable(commandFile)) {
return null;
}
-
- String resolvedCommand = commandFile.toAbsolutePath().normalize();
-
- if (!windows && !resolvedCommand.startsWith('.')) {
- resolvedCommand = '.' + File.separator + resolvedCommand;
- }
-
- return resolvedCommand;
+
+ return commandFile.toAbsolutePath().normalize();
}
private static String normalizeCommandPaths(String command) {