diff --git a/gradlew.bat b/gradlew.bat index f9553162..557260f6 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -73,10 +73,10 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar if "%ERRORLEVEL%"=="0" goto mainEnd :fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +@rem pause the application before exiting so the user can see the error message and logs +@rem exit with the errorlevel for further processing +pause +exit /b %ERRORLEVEL% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/gradlew b/gradlew.sh similarity index 100% rename from gradlew rename to gradlew.sh