This is an automated email from the ASF dual-hosted git repository. leirui pushed a commit to branch fixEnvBat in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 8405f4547aa1eef24a0e76d824c504c0384bff9b Author: RuiLei <[email protected]> AuthorDate: Mon Jan 13 16:05:22 2020 +0800 fix bug in iotdb-env.bat by using quotes to protect against empty entries --- server/src/assembly/resources/conf/iotdb-env.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/assembly/resources/conf/iotdb-env.bat b/server/src/assembly/resources/conf/iotdb-env.bat index fcf9fba..007ea8c 100644 --- a/server/src/assembly/resources/conf/iotdb-env.bat +++ b/server/src/assembly/resources/conf/iotdb-env.bat @@ -29,7 +29,7 @@ if "%LOCAL_JMX%" == "yes" ( IF ["%IOTDB_HEAP_OPTS%"] EQU [""] ( rem detect Java 8 or 11 - IF %%JAVA_VERSION%% == 8 ( + IF "%JAVA_VERSION%" == "8" ( java -d64 -version >nul 2>&1 IF NOT ERRORLEVEL 1 ( rem 64-bit Java @@ -69,7 +69,7 @@ IF "%BIT_VERSION%" == "64-Bit" ( :end_config_setting @REM set gc log. IF "%1" equ "printgc" ( - IF %JAVA_VERSION% == 8 ( + IF "%JAVA_VERSION%" == "8" ( md %IOTDB_HOME%\logs set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Xloggc:"%IOTDB_HOME%\logs\gc.log" -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M ) ELSE (
