From c14be7f3ed5cdca39295e5dd139fbd700d925f53 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Sep 2012 11:17:27 +0200 Subject: [PATCH] SONAR-3698 correctly propagate exit code on Windows --- .../src/main/java/org/sonar/api/utils/command/Command.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5