]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3698 correctly propagate exit code on Windows
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Sep 2012 09:17:27 +0000 (11:17 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Sep 2012 09:17:27 +0000 (11:17 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java

index 84216d0d0e31f53867087f9688638b9b4fc6d5bd..a27bd25edd5a254ce7e00716b5edc1ce14b2d3e4 100644 (file)
@@ -131,7 +131,7 @@ public class Command {
     ImmutableList.Builder<String> command = ImmutableList.builder();
     if (newShell) {
       if (SystemUtils.IS_OS_WINDOWS) {
-        command.add("cmd", "/C");
+        command.add("cmd", "/C", "call");
       } else {
         command.add("sh");
       }