diff options
| author | 2022-12-07 19:42:55 +0000 | |
|---|---|---|
| committer | 2022-12-07 19:42:55 +0000 | |
| commit | 2d027a80fa52adf1dde409b3f112c465a79127db (patch) | |
| tree | e4fffbbab64001b54d7882d92fd56532ee09da82 | |
| parent | Make enum methods `values` and `valueOf` unmappable (#470) (diff) | |
| download | enigma-2d027a80fa52adf1dde409b3f112c465a79127db.tar.gz enigma-2d027a80fa52adf1dde409b3f112c465a79127db.tar.xz enigma-2d027a80fa52adf1dde409b3f112c465a79127db.zip | |
Update dependencies and Gradle
| -rw-r--r-- | .gitattributes | 8 | ||||
| -rw-r--r-- | .github/workflows/build.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 7 | ||||
| -rw-r--r-- | enigma-swing/build.gradle | 10 | ||||
| -rw-r--r-- | enigma/build.gradle | 10 | ||||
| -rw-r--r-- | enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java | 2 | ||||
| -rw-r--r-- | gradle/wrapper/gradle-wrapper.jar | bin | 59536 -> 61574 bytes | |||
| -rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 3 | ||||
| -rwxr-xr-x | gradlew | 28 | ||||
| -rw-r--r-- | gradlew.bat | 181 |
10 files changed, 139 insertions, 119 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..afd59d8f --- /dev/null +++ b/.gitattributes | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # | ||
| 2 | # https://help.github.com/articles/dealing-with-line-endings/ | ||
| 3 | # | ||
| 4 | # Linux start script should use lf | ||
| 5 | /gradlew text eol=lf | ||
| 6 | |||
| 7 | # These are Windows script files and should use crlf | ||
| 8 | *.bat text eol=crlf | ||
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0abdf58e..f2fbb3a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -4,14 +4,13 @@ jobs: | |||
| 4 | build: | 4 | build: |
| 5 | strategy: | 5 | strategy: |
| 6 | matrix: | 6 | matrix: |
| 7 | java: [ 17-jdk ] | 7 | java: [ 17-jdk, 19-jdk ] |
| 8 | runs-on: ubuntu-20.04 | 8 | runs-on: ubuntu-22.04 |
| 9 | container: | 9 | container: |
| 10 | image: openjdk:${{ matrix.java }} | 10 | image: eclipse-temurin:${{ matrix.java }} |
| 11 | options: --user root | 11 | options: --user root |
| 12 | steps: | 12 | steps: |
| 13 | - uses: actions/checkout@v1 | 13 | - uses: actions/checkout@v3 |
| 14 | - uses: gradle/wrapper-validation-action@v1 | ||
| 15 | - run: ./gradlew build --stacktrace --warning-mode fail | 14 | - run: ./gradlew build --stacktrace --warning-mode fail |
| 16 | - uses: Juuxel/publish-checkstyle-report@v1 | 15 | - uses: Juuxel/publish-checkstyle-report@v1 |
| 17 | if: ${{ failure() }} | 16 | if: ${{ failure() }} |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a4dc97d..87fd901a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml | |||
| @@ -2,13 +2,12 @@ name: Release | |||
| 2 | on: [ workflow_dispatch ] # Manual trigger | 2 | on: [ workflow_dispatch ] # Manual trigger |
| 3 | jobs: | 3 | jobs: |
| 4 | build: | 4 | build: |
| 5 | runs-on: ubuntu-20.04 | 5 | runs-on: ubuntu-22.04 |
| 6 | container: | 6 | container: |
| 7 | image: openjdk:17-jdk | 7 | image: eclipse-temurin:19-jdk |
| 8 | options: --user root | 8 | options: --user root |
| 9 | steps: | 9 | steps: |
| 10 | - uses: actions/checkout@v1 | 10 | - uses: actions/checkout@v3 |
| 11 | - uses: gradle/wrapper-validation-action@v1 | ||
| 12 | - run: ./gradlew checkVersion build publish --stacktrace | 11 | - run: ./gradlew checkVersion build publish --stacktrace |
| 13 | env: | 12 | env: |
| 14 | MAVEN_URL: ${{ secrets.MAVEN_URL }} | 13 | MAVEN_URL: ${{ secrets.MAVEN_URL }} |
diff --git a/enigma-swing/build.gradle b/enigma-swing/build.gradle index a4a13d88..fff4dafe 100644 --- a/enigma-swing/build.gradle +++ b/enigma-swing/build.gradle | |||
| @@ -8,10 +8,10 @@ dependencies { | |||
| 8 | implementation project(':enigma-server') | 8 | implementation project(':enigma-server') |
| 9 | 9 | ||
| 10 | implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3' | 10 | implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3' |
| 11 | implementation 'com.formdev:flatlaf:1.6.1' | 11 | implementation 'com.formdev:flatlaf:2.6' |
| 12 | implementation 'com.formdev:flatlaf-extras:1.6.1' // for SVG icons | 12 | implementation 'com.formdev:flatlaf-extras:2.6' // for SVG icons |
| 13 | implementation 'de.sciss:syntaxpane:1.2.0' | 13 | implementation 'de.sciss:syntaxpane:1.2.1' |
| 14 | implementation 'com.github.lukeu:swing-dpi:0.9' | 14 | implementation 'com.github.lukeu:swing-dpi:0.10' |
| 15 | implementation 'org.drjekyll:fontchooser:2.5.2' | 15 | implementation 'org.drjekyll:fontchooser:2.5.2' |
| 16 | } | 16 | } |
| 17 | 17 | ||
| @@ -25,4 +25,4 @@ publishing { | |||
| 25 | publication.from components.java | 25 | publication.from components.java |
| 26 | } | 26 | } |
| 27 | } | 27 | } |
| 28 | } | 28 | } \ No newline at end of file |
diff --git a/enigma/build.gradle b/enigma/build.gradle index 9df805d4..810b35db 100644 --- a/enigma/build.gradle +++ b/enigma/build.gradle | |||
| @@ -3,15 +3,15 @@ configurations { | |||
| 3 | } | 3 | } |
| 4 | 4 | ||
| 5 | dependencies { | 5 | dependencies { |
| 6 | implementation 'org.ow2.asm:asm:9.3' | 6 | implementation 'org.ow2.asm:asm:9.4' |
| 7 | implementation 'org.ow2.asm:asm-commons:9.3' | 7 | implementation 'org.ow2.asm:asm-commons:9.4' |
| 8 | implementation 'org.ow2.asm:asm-tree:9.3' | 8 | implementation 'org.ow2.asm:asm-tree:9.4' |
| 9 | implementation 'org.ow2.asm:asm-util:9.3' | 9 | implementation 'org.ow2.asm:asm-util:9.4' |
| 10 | 10 | ||
| 11 | implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' | 11 | implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' |
| 12 | implementation 'net.fabricmc:cfr:0.2.0' | 12 | implementation 'net.fabricmc:cfr:0.2.0' |
| 13 | 13 | ||
| 14 | proGuard 'com.guardsquare:proguard-base:7.2.0-beta2' | 14 | proGuard 'com.guardsquare:proguard-base:7.3.0' |
| 15 | 15 | ||
| 16 | testImplementation 'com.google.jimfs:jimfs:1.2' | 16 | testImplementation 'com.google.jimfs:jimfs:1.2' |
| 17 | } | 17 | } |
diff --git a/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java b/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java index 46086e56..22210b01 100644 --- a/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java +++ b/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java | |||
| @@ -46,7 +46,7 @@ public class TestInnerClasses { | |||
| 46 | CachingClassProvider classProvider = new CachingClassProvider(jcp); | 46 | CachingClassProvider classProvider = new CachingClassProvider(jcp); |
| 47 | index = JarIndex.empty(); | 47 | index = JarIndex.empty(); |
| 48 | index.indexJar(jcp.getClassNames(), classProvider, ProgressListener.none()); | 48 | index.indexJar(jcp.getClassNames(), classProvider, ProgressListener.none()); |
| 49 | decompiler = Decompilers.PROCYON.create(classProvider, new SourceSettings(false, false)); | 49 | decompiler = Decompilers.CFR.create(classProvider, new SourceSettings(false, false)); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | @Test | 52 | @Test |
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f..943f0cbf 100644 --- a/gradle/wrapper/gradle-wrapper.jar +++ b/gradle/wrapper/gradle-wrapper.jar | |||
| Binary files differ | |||
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e750102e..f398c33c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | distributionBase=GRADLE_USER_HOME | 1 | distributionBase=GRADLE_USER_HOME |
| 2 | distributionPath=wrapper/dists | 2 | distributionPath=wrapper/dists |
| 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip |
| 4 | networkTimeout=10000 | ||
| 4 | zipStoreBase=GRADLE_USER_HOME | 5 | zipStoreBase=GRADLE_USER_HOME |
| 5 | zipStorePath=wrapper/dists | 6 | zipStorePath=wrapper/dists |
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # | 3 | # |
| 4 | # Copyright © 2015-2021 the original authors. | 4 | # Copyright © 2015-2021 the original authors. |
| 5 | # | 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); | 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. | 7 | # you may not use this file except in compliance with the License. |
| @@ -32,10 +32,10 @@ | |||
| 32 | # Busybox and similar reduced shells will NOT work, because this script | 32 | # Busybox and similar reduced shells will NOT work, because this script |
| 33 | # requires all of these POSIX shell features: | 33 | # requires all of these POSIX shell features: |
| 34 | # * functions; | 34 | # * functions; |
| 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», | 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», |
| 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; | 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; |
| 37 | # * compound commands having a testable exit status, especially «case»; | 37 | # * compound commands having a testable exit status, especially «case»; |
| 38 | # * various built-in commands including «command», «set», and «ulimit». | 38 | # * various built-in commands including «command», «set», and «ulimit». |
| 39 | # | 39 | # |
| 40 | # Important for patching: | 40 | # Important for patching: |
| 41 | # | 41 | # |
| @@ -55,7 +55,7 @@ | |||
| 55 | # Darwin, MinGW, and NonStop. | 55 | # Darwin, MinGW, and NonStop. |
| 56 | # | 56 | # |
| 57 | # (3) This script is generated from the Groovy template | 57 | # (3) This script is generated from the Groovy template |
| 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt | 58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
| 59 | # within the Gradle project. | 59 | # within the Gradle project. |
| 60 | # | 60 | # |
| 61 | # You can find Gradle at https://github.com/gradle/gradle/. | 61 | # You can find Gradle at https://github.com/gradle/gradle/. |
| @@ -80,10 +80,10 @@ do | |||
| 80 | esac | 80 | esac |
| 81 | done | 81 | done |
| 82 | 82 | ||
| 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit | 83 | # This is normally unused |
| 84 | 84 | # shellcheck disable=SC2034 | |
| 85 | APP_NAME="Gradle" | ||
| 86 | APP_BASE_NAME=${0##*/} | 85 | APP_BASE_NAME=${0##*/} |
| 86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit | ||
| 87 | 87 | ||
| 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
| 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' |
| @@ -143,12 +143,16 @@ fi | |||
| 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then | 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then |
| 144 | case $MAX_FD in #( | 144 | case $MAX_FD in #( |
| 145 | max*) | 145 | max*) |
| 146 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. | ||
| 147 | # shellcheck disable=SC3045 | ||
| 146 | MAX_FD=$( ulimit -H -n ) || | 148 | MAX_FD=$( ulimit -H -n ) || |
| 147 | warn "Could not query maximum file descriptor limit" | 149 | warn "Could not query maximum file descriptor limit" |
| 148 | esac | 150 | esac |
| 149 | case $MAX_FD in #( | 151 | case $MAX_FD in #( |
| 150 | '' | soft) :;; #( | 152 | '' | soft) :;; #( |
| 151 | *) | 153 | *) |
| 154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. | ||
| 155 | # shellcheck disable=SC3045 | ||
| 152 | ulimit -n "$MAX_FD" || | 156 | ulimit -n "$MAX_FD" || |
| 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" | 157 | warn "Could not set maximum file descriptor limit to $MAX_FD" |
| 154 | esac | 158 | esac |
| @@ -205,6 +209,12 @@ set -- \ | |||
| 205 | org.gradle.wrapper.GradleWrapperMain \ | 209 | org.gradle.wrapper.GradleWrapperMain \ |
| 206 | "$@" | 210 | "$@" |
| 207 | 211 | ||
| 212 | # Stop when "xargs" is not available. | ||
| 213 | if ! command -v xargs >/dev/null 2>&1 | ||
| 214 | then | ||
| 215 | die "xargs is not available" | ||
| 216 | fi | ||
| 217 | |||
| 208 | # Use "xargs" to parse quoted args. | 218 | # Use "xargs" to parse quoted args. |
| 209 | # | 219 | # |
| 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. | 220 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. |
diff --git a/gradlew.bat b/gradlew.bat index 107acd32..6689b85b 100644 --- a/gradlew.bat +++ b/gradlew.bat | |||
| @@ -1,89 +1,92 @@ | |||
| 1 | @rem | 1 | @rem |
| 2 | @rem Copyright 2015 the original author or authors. | 2 | @rem Copyright 2015 the original author or authors. |
| 3 | @rem | 3 | @rem |
| 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); | 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | @rem you may not use this file except in compliance with the License. | 5 | @rem you may not use this file except in compliance with the License. |
| 6 | @rem You may obtain a copy of the License at | 6 | @rem You may obtain a copy of the License at |
| 7 | @rem | 7 | @rem |
| 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 | 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | @rem | 9 | @rem |
| 10 | @rem Unless required by applicable law or agreed to in writing, software | 10 | @rem Unless required by applicable law or agreed to in writing, software |
| 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, | 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | @rem See the License for the specific language governing permissions and | 13 | @rem See the License for the specific language governing permissions and |
| 14 | @rem limitations under the License. | 14 | @rem limitations under the License. |
| 15 | @rem | 15 | @rem |
| 16 | 16 | ||
| 17 | @if "%DEBUG%" == "" @echo off | 17 | @if "%DEBUG%"=="" @echo off |
| 18 | @rem ########################################################################## | 18 | @rem ########################################################################## |
| 19 | @rem | 19 | @rem |
| 20 | @rem Gradle startup script for Windows | 20 | @rem Gradle startup script for Windows |
| 21 | @rem | 21 | @rem |
| 22 | @rem ########################################################################## | 22 | @rem ########################################################################## |
| 23 | 23 | ||
| 24 | @rem Set local scope for the variables with windows NT shell | 24 | @rem Set local scope for the variables with windows NT shell |
| 25 | if "%OS%"=="Windows_NT" setlocal | 25 | if "%OS%"=="Windows_NT" setlocal |
| 26 | 26 | ||
| 27 | set DIRNAME=%~dp0 | 27 | set DIRNAME=%~dp0 |
| 28 | if "%DIRNAME%" == "" set DIRNAME=. | 28 | if "%DIRNAME%"=="" set DIRNAME=. |
| 29 | set APP_BASE_NAME=%~n0 | 29 | @rem This is normally unused |
| 30 | set APP_HOME=%DIRNAME% | 30 | set APP_BASE_NAME=%~n0 |
| 31 | 31 | set APP_HOME=%DIRNAME% | |
| 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. | 32 | |
| 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. |
| 34 | 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | |
| 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | 35 | |
| 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
| 37 | 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | |
| 38 | @rem Find java.exe | 38 | |
| 39 | if defined JAVA_HOME goto findJavaFromJavaHome | 39 | @rem Find java.exe |
| 40 | 40 | if defined JAVA_HOME goto findJavaFromJavaHome | |
| 41 | set JAVA_EXE=java.exe | 41 | |
| 42 | %JAVA_EXE% -version >NUL 2>&1 | 42 | set JAVA_EXE=java.exe |
| 43 | if "%ERRORLEVEL%" == "0" goto execute | 43 | %JAVA_EXE% -version >NUL 2>&1 |
| 44 | 44 | if %ERRORLEVEL% equ 0 goto execute | |
| 45 | echo. | 45 | |
| 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | 46 | echo. |
| 47 | echo. | 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
| 48 | echo Please set the JAVA_HOME variable in your environment to match the | 48 | echo. |
| 49 | echo location of your Java installation. | 49 | echo Please set the JAVA_HOME variable in your environment to match the |
| 50 | 50 | echo location of your Java installation. | |
| 51 | goto fail | 51 | |
| 52 | 52 | goto fail | |
| 53 | :findJavaFromJavaHome | 53 | |
| 54 | set JAVA_HOME=%JAVA_HOME:"=% | 54 | :findJavaFromJavaHome |
| 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe | 55 | set JAVA_HOME=%JAVA_HOME:"=% |
| 56 | 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe | |
| 57 | if exist "%JAVA_EXE%" goto execute | 57 | |
| 58 | 58 | if exist "%JAVA_EXE%" goto execute | |
| 59 | echo. | 59 | |
| 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% | 60 | echo. |
| 61 | echo. | 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% |
| 62 | echo Please set the JAVA_HOME variable in your environment to match the | 62 | echo. |
| 63 | echo location of your Java installation. | 63 | echo Please set the JAVA_HOME variable in your environment to match the |
| 64 | 64 | echo location of your Java installation. | |
| 65 | goto fail | 65 | |
| 66 | 66 | goto fail | |
| 67 | :execute | 67 | |
| 68 | @rem Setup the command line | 68 | :execute |
| 69 | 69 | @rem Setup the command line | |
| 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | 70 | |
| 71 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | |
| 72 | 72 | ||
| 73 | @rem Execute Gradle | 73 | |
| 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* | 74 | @rem Execute Gradle |
| 75 | 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* | |
| 76 | :end | 76 | |
| 77 | @rem End local scope for the variables with windows NT shell | 77 | :end |
| 78 | if "%ERRORLEVEL%"=="0" goto mainEnd | 78 | @rem End local scope for the variables with windows NT shell |
| 79 | 79 | if %ERRORLEVEL% equ 0 goto mainEnd | |
| 80 | :fail | 80 | |
| 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | 81 | :fail |
| 82 | rem the _cmd.exe /c_ return code! | 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of |
| 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 | 83 | rem the _cmd.exe /c_ return code! |
| 84 | exit /b 1 | 84 | set EXIT_CODE=%ERRORLEVEL% |
| 85 | 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 | |
| 86 | :mainEnd | 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% |
| 87 | if "%OS%"=="Windows_NT" endlocal | 87 | exit /b %EXIT_CODE% |
| 88 | 88 | ||
| 89 | :omega | 89 | :mainEnd |
| 90 | if "%OS%"=="Windows_NT" endlocal | ||
| 91 | |||
| 92 | :omega | ||