This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 94264880db1 IGNITE-26200 Migration Tools: Fix error in windows startup 
scripts (#6421)
94264880db1 is described below

commit 94264880db1b99fba6f5ebdf5face9a904747ec7
Author: Tiago Marques Godinho <[email protected]>
AuthorDate: Tue Aug 19 11:18:08 2025 +0100

    IGNITE-26200 Migration Tools: Fix error in windows startup scripts (#6421)
---
 migration-tools/packaging/cli/start.bat                 | 11 +++++------
 migration-tools/packaging/common/windows/setup-java.bat |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/migration-tools/packaging/cli/start.bat 
b/migration-tools/packaging/cli/start.bat
index d06c4c96e0c..e72c8758fcc 100644
--- a/migration-tools/packaging/cli/start.bat
+++ b/migration-tools/packaging/cli/start.bat
@@ -22,14 +22,13 @@ if "%OS%"=="Windows_NT" setlocal
 
 set DIRNAME=%~dp0
 if "%DIRNAME%"=="" set DIRNAME=.
-set LIB_DIR="@LIB_DIR@"
 
 @rem Resolve any "." and ".." in LIB_DIR to make it shorter.
-for %%i in ("%LIB_DIR%") do set LIB_DIR=%%~fi
+for %%i in ("@LIB_DIR@") do set LIB_DIR=%%~fi
 
-set APP_JAR="@APP_JAR@"
-set MAIN_CLASS="@MAIN_CLASS@"
-set ARGS="@ARGS@"
+set APP_JAR=@APP_JAR@
+set MAIN_CLASS=@MAIN_CLASS@
+set ARGS=@ARGS@
 
 call %LIB_DIR%\setup-java.bat
 if %ERRORLEVEL% neq 0 goto mainEnd
@@ -38,7 +37,7 @@ call %LIB_DIR%\jvmdefaults.bat
 if %ERRORLEVEL% neq 0 goto mainEnd
 
 set LOG_DIR="@LOG_DIR@"
-set CLASSPATH="%LIB_DIR%\%APP_JAR%:%LIB_DIR%\*"
+set CLASSPATH="%LIB_DIR%\%APP_JAR%;%LIB_DIR%\*"
 
 set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 ^
 -XX:+HeapDumpOnOutOfMemoryError ^
diff --git a/migration-tools/packaging/common/windows/setup-java.bat 
b/migration-tools/packaging/common/windows/setup-java.bat
index 98aa107717f..d14788978a3 100644
--- a/migration-tools/packaging/common/windows/setup-java.bat
+++ b/migration-tools/packaging/common/windows/setup-java.bat
@@ -45,7 +45,7 @@ exit /b 1
 
 :checkJdkVersion
 
-for /f "tokens=* USEBACKQ" %%f in (`%JAVA_EXE% -version 2^>^&1`) do (
+for /f "tokens=* USEBACKQ" %%f in (`"%JAVA_EXE%" -version 2^>^&1`) do (
     set JAVA_FULL_VER_STR=%%f
     goto :LoopEscape
 )

Reply via email to