You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ec5acfd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/main/resources/customWindowsStartScript.txt
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
@rem from https://github.com/gradle/gradle/blob/41203b0be36cabf983b0ebe9e402e1f37a67b0cc/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/windowsStartScript.txt
1
+
@rem from https://github.com/gradle/gradle/blob/fc7a4c9710a3df2c33a439fff4799bce057d89f9/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/windowsStartScript.txt
2
2
3
3
@rem
4
4
@rem Copyright 2015 the original author or authors.
@@ -51,27 +51,29 @@ set JAVA_EXE=java.exe
51
51
%JAVA_EXE% -version >NUL 2>&1
52
52
if %ERRORLEVEL% equ 0 goto execute
53
53
54
-
echo. 1>&2
55
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
56
-
echo. 1>&2
57
-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
58
-
echo location of your Java installation. 1>&2
54
+
1>&2 echo.
55
+
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
56
+
1>&2 echo.
57
+
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
58
+
1>&2 echo location of your Java installation.
59
59
60
60
"%COMSPEC%" /c exit 1
61
+
goto exitWithErrorLevel
61
62
62
63
:findJavaFromJavaHome
63
64
set JAVA_HOME=%JAVA_HOME:"=%
64
65
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
65
66
66
67
if exist "%JAVA_EXE%" goto execute
67
68
68
-
echo. 1>&2
69
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
70
-
echo. 1>&2
71
-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
72
-
echo location of your Java installation. 1>&2
69
+
1>&2 echo.
70
+
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
71
+
1>&2 echo.
72
+
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
73
+
1>&2 echo location of your Java installation.
73
74
74
75
"%COMSPEC%" /c exit 1
76
+
goto exitWithErrorLevel
75
77
76
78
:execute
77
79
@rem Setup the command line
@@ -84,8 +86,9 @@ set CLASSPATH=$classpath
84
86
@rem Execute ${applicationName}
85
87
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
86
88
@rem which allows us to clear the local environment before executing the java command
0 commit comments