From a42e67ad4599c9d98658ab1f81a8ccf4ea996b57 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 7 Aug 2023 15:28:58 +0100 Subject: [PATCH] [WINDUP-3973] Fix windup-cli.bat file - Windup initialisation (#121) Co-authored-by: Juan Manuel Leflet Estrada --- src/main/resources/bin/windup-cli.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/bin/windup-cli.bat b/src/main/resources/bin/windup-cli.bat index 9820dbd..2ff4c3d 100644 --- a/src/main/resources/bin/windup-cli.bat +++ b/src/main/resources/bin/windup-cli.bat @@ -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 )