From: Simon Brandhof Date: Thu, 13 Sep 2012 09:17:27 +0000 (+0200) Subject: SONAR-3698 correctly propagate exit code on Windows X-Git-Tag: 3.3~302 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c14be7f3ed5cdca39295e5dd139fbd700d925f53;p=sonarqube.git SONAR-3698 correctly propagate exit code on Windows --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java index 84216d0d0e3..a27bd25edd5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java @@ -131,7 +131,7 @@ public class Command { ImmutableList.Builder command = ImmutableList.builder(); if (newShell) { if (SystemUtils.IS_OS_WINDOWS) { - command.add("cmd", "/C"); + command.add("cmd", "/C", "call"); } else { command.add("sh"); }