File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ while [ -h "$PRG" ] ; do
39
39
fi
40
40
done
41
41
42
+ if [ " $( expr " $JAVA_VERSION " \> " 17." ) " ]; then
43
+ JAVA_OPTS=" $JAVA_OPTS --enable-native-access=ALL-UNNAMED"
44
+ fi
45
+
42
46
DIRNAME=" $( dirname " $PRG " ) "
43
47
44
48
. " $DIRNAME /startGroovy"
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ if "%DIRNAME%" == "" set DIRNAME=.\
29
29
30
30
set CLASSNAME = org.apache.groovy.groovysh.Main
31
31
32
+ if " %JAVA_VERSION% " gtr " 17.0" set JAVA_OPTS = %JAVA_OPTS% --enable-native-access=ALL-UNNAMED
33
+
32
34
" %DIRNAME% \startGroovy.bat" " %DIRNAME% " %CLASSNAME% %*
33
35
34
36
@ rem End local scope for the variables with windows NT shell
35
37
if " %OS% " == " Windows_NT" endlocal
36
- %COMSPEC% /C exit /B %ERRORLEVEL%
38
+ %COMSPEC% /C exit /B %ERRORLEVEL%
You can’t perform that action at this time.
0 commit comments