From f9bb94968e1d38af999e36839f41c777722bed70 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 1 Nov 2016 17:34:45 +0300 Subject: do not add ./ to command if linux --- .../src/main/groovy/org/jetbrains/CrossPlatformExec.groovy | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'buildSrc/src/main/groovy/org') 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) { -- cgit