From cac44f8d254c5fd5a1d01246a8db7d89aead26a2 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 7 Jan 2013 09:38:19 +0100 Subject: Try to fix ITs on Windows. --- src/main/assembly/bin/sonar-runner.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/assembly/bin/sonar-runner.bat') diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat index 4e13424..3b444e6 100644 --- a/src/main/assembly/bin/sonar-runner.bat +++ b/src/main/assembly/bin/sonar-runner.bat @@ -87,4 +87,11 @@ set ERROR_CODE=1 @REM set local scope for the variables with windows NT shell @endlocal & set ERROR_CODE=%ERROR_CODE% -cmd /C exit /B %ERROR_CODE% +@REM see http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/ +goto exit + +:returncode +exit /B %1 + +:exit +call :returncode %ERROR_CODE% -- cgit v1.2.3