diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-07 09:38:19 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-07 10:29:37 +0100 |
commit | cac44f8d254c5fd5a1d01246a8db7d89aead26a2 (patch) | |
tree | 3877171a1064fac73c079a0008e2c12981d346c0 /src/main/assembly | |
parent | e70c6aa7aad6afd1dddf916b8d4ed44ecbc33e45 (diff) | |
download | sonar-scanner-cli-cac44f8d254c5fd5a1d01246a8db7d89aead26a2.tar.gz sonar-scanner-cli-cac44f8d254c5fd5a1d01246a8db7d89aead26a2.zip |
Try to fix ITs on Windows.
Diffstat (limited to 'src/main/assembly')
-rw-r--r-- | src/main/assembly/bin/sonar-runner.bat | 9 |
1 files changed, 8 insertions, 1 deletions
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% |