From f2bbbed7f636a93209fe2e8a6994cee12b386d6e Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Thu, 21 Nov 2013 15:19:04 +0400 Subject: [PATCH] Returning correct exit code from Windows batch scripts. --- compiler/cli/bin/kotlinc-js.bat | 1 + compiler/cli/bin/kotlinc-jvm.bat | 1 + 2 files changed, 2 insertions(+) diff --git a/compiler/cli/bin/kotlinc-js.bat b/compiler/cli/bin/kotlinc-js.bat index 12444104dc2..d0b1ade7913 100644 --- a/compiler/cli/bin/kotlinc-js.bat +++ b/compiler/cli/bin/kotlinc-js.bat @@ -42,6 +42,7 @@ if "%_PROFILE_PRELOADER%"=="time" ( org.jetbrains.jet.preloading.Preloader "%_KOTLIN_HOME%\lib\kotlin-compiler.jar;%_KOTLIN_HOME%\lib\kotlin-runtime.jar" ^ org.jetbrains.jet.cli.js.K2JSCompiler 4096 %_PROFILE_PRELOADER% %* ) +EXIT /B %ERRORLEVEL% goto end rem ########################################################################## diff --git a/compiler/cli/bin/kotlinc-jvm.bat b/compiler/cli/bin/kotlinc-jvm.bat index 9e9e61ce6df..80d1cc598ef 100644 --- a/compiler/cli/bin/kotlinc-jvm.bat +++ b/compiler/cli/bin/kotlinc-jvm.bat @@ -42,6 +42,7 @@ if "%_PROFILE_PRELOADER%"=="time" ( org.jetbrains.jet.preloading.Preloader "%_KOTLIN_HOME%\lib\kotlin-compiler.jar;%_KOTLIN_HOME%\lib\kotlin-runtime.jar" ^ org.jetbrains.jet.cli.jvm.K2JVMCompiler 4096 %_PROFILE_PRELOADER% %* ) +EXIT /B %ERRORLEVEL% goto end rem ##########################################################################