Skip to content

Commit

Permalink
[WINDUP-3973] Fix windup-cli.bat file - Windup initialisation (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Manuel Leflet Estrada <[email protected]>
  • Loading branch information
m-brophy and jmle authored Aug 7, 2023
1 parent c811ab5 commit a42e67a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/bin/windup-cli.bat
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ for /f "delims=. tokens=1-3" %%v in ("%JAVAVER%") do (
set JAVAVER_MINOR=%%w
)
set "JAVAVER_MAJOR=%JAVAVER_MAJOR:~1,2%"

set MODULES=
if %JAVAVER_MAJOR% equ 11 (
SET MODULES="--add-modules=java.se"
SET MODULES=--add-modules=java.se
goto chkFHome
)
if %JAVAVER_MAJOR% equ 17 (
SET MODULES="--add-modules=java.se --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.stream=ALL-UNNAMED"
SET MODULES=--add-modules=java.se --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.stream=ALL-UNNAMED
goto chkFHome
)

Expand Down

0 comments on commit a42e67a

Please sign in to comment.