diff options
author | 2022-02-04 20:18:20 +0100 | |
---|---|---|
committer | 2022-02-04 20:18:20 +0100 | |
commit | 42db1e8b4dcff3667c5f14e8dd464309c3c2f23e (patch) | |
tree | f5f5efe86fb352980cf144cceb68d1a1101b274f /gradlew.bat | |
parent | chore(web): fix Sonar issue (diff) | |
parent | chore(frontend): bump frontend dependencies (diff) | |
download | refinery-42db1e8b4dcff3667c5f14e8dd464309c3c2f23e.tar.gz refinery-42db1e8b4dcff3667c5f14e8dd464309c3c2f23e.tar.zst refinery-42db1e8b4dcff3667c5f14e8dd464309c3c2f23e.zip |
Merge pull request #18 from kris7t/releng-docs
Restructure project
Diffstat (limited to 'gradlew.bat')
-rw-r--r-- | gradlew.bat | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/gradlew.bat b/gradlew.bat index 24467a14..ac1b06f9 100644 --- a/gradlew.bat +++ b/gradlew.bat | |||
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=. | |||
29 | set APP_BASE_NAME=%~n0 | 29 | set APP_BASE_NAME=%~n0 |
30 | set APP_HOME=%DIRNAME% | 30 | set APP_HOME=%DIRNAME% |
31 | 31 | ||
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. | ||
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | ||
34 | |||
32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. |
33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" |
34 | 37 | ||
@@ -37,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome | |||
37 | 40 | ||
38 | set JAVA_EXE=java.exe | 41 | set JAVA_EXE=java.exe |
39 | %JAVA_EXE% -version >NUL 2>&1 | 42 | %JAVA_EXE% -version >NUL 2>&1 |
40 | if "%ERRORLEVEL%" == "0" goto init | 43 | if "%ERRORLEVEL%" == "0" goto execute |
41 | 44 | ||
42 | echo. | 45 | echo. |
43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
@@ -51,7 +54,7 @@ goto fail | |||
51 | set JAVA_HOME=%JAVA_HOME:"=% | 54 | set JAVA_HOME=%JAVA_HOME:"=% |
52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe | 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe |
53 | 56 | ||
54 | if exist "%JAVA_EXE%" goto init | 57 | if exist "%JAVA_EXE%" goto execute |
55 | 58 | ||
56 | echo. | 59 | echo. |
57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% | 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% |
@@ -61,28 +64,14 @@ echo location of your Java installation. | |||
61 | 64 | ||
62 | goto fail | 65 | goto fail |
63 | 66 | ||
64 | :init | ||
65 | @rem Get command-line arguments, handling Windows variants | ||
66 | |||
67 | if not "%OS%" == "Windows_NT" goto win9xME_args | ||
68 | |||
69 | :win9xME_args | ||
70 | @rem Slurp the command line arguments. | ||
71 | set CMD_LINE_ARGS= | ||
72 | set _SKIP=2 | ||
73 | |||
74 | :win9xME_args_slurp | ||
75 | if "x%~1" == "x" goto execute | ||
76 | |||
77 | set CMD_LINE_ARGS=%* | ||
78 | |||
79 | :execute | 67 | :execute |
80 | @rem Setup the command line | 68 | @rem Setup the command line |
81 | 69 | ||
82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar |
83 | 71 | ||
72 | |||
84 | @rem Execute Gradle | 73 | @rem Execute Gradle |
85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% | 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* |
86 | 75 | ||
87 | :end | 76 | :end |
88 | @rem End local scope for the variables with windows NT shell | 77 | @rem End local scope for the variables with windows NT shell |