Skip to content

Commit

Permalink
v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
leonchen83 committed Mar 15, 2021
1 parent d8b3a87 commit b983483
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 51 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.6.3

fix windows cmd running failed bug.

### 0.6.2

support downgrade migration from redis 6.2 to 2.8.
Expand Down
16 changes: 6 additions & 10 deletions src/main/assembly/bin/rct.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ goto error
@REM ==== END VALIDATION ====

:init
for %%i in ("%RCT_HOME%\lib\*") do (
call :concat "%%i"
setLocal EnableDelayedExpansion
set CLASS_PATH="
for %%i in ("%RCT_HOME%\lib\*.jar") do (
set CLASS_PATH=!CLASS_PATH!;%%i
)
set CLASS_PATH=!CLASS_PATH!"

set LOG_DIR=%RCT_HOME%\log
set CON_DIR=%RCT_HOME%\conf
set LOG_FILE=%CON_DIR%\log4j2.xml
set CON_FILE=%CON_DIR%\redis-rdb-cli.conf
set MAIN_CLASS=com.moilioncircle.redis.rdb.cli.Rct
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%"
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%" -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dfile.encoding=UTF-8

"%JAVACMD%" %RCT_OPS% -cp %CLASS_PATH% %MAIN_CLASS% %*
if ERRORLEVEL 1 goto error
Expand All @@ -65,10 +68,3 @@ set ERROR_CODE=1
@endlocal & set ERROR_CODE=%ERROR_CODE%

cmd /C exit /B %ERROR_CODE%

:concat
if not defined CLASS_PATH (
set CLASS_PATH="%~1"
) else (
set CLASS_PATH=%CLASS_PATH%;"%~1"
)
16 changes: 6 additions & 10 deletions src/main/assembly/bin/rdt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ goto error
@REM ==== END VALIDATION ====

:init
for %%i in ("%RCT_HOME%\lib\*") do (
call :concat "%%i"
setLocal EnableDelayedExpansion
set CLASS_PATH="
for %%i in ("%RCT_HOME%\lib\*.jar") do (
set CLASS_PATH=!CLASS_PATH!;%%i
)
set CLASS_PATH=!CLASS_PATH!"

set LOG_DIR=%RCT_HOME%\log
set CON_DIR=%RCT_HOME%\conf
set LOG_FILE=%CON_DIR%\log4j2.xml
set CON_FILE=%CON_DIR%\redis-rdb-cli.conf
set MAIN_CLASS=com.moilioncircle.redis.rdb.cli.Rdt
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%"
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%" -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dfile.encoding=UTF-8

"%JAVACMD%" %RCT_OPS% -cp %CLASS_PATH% %MAIN_CLASS% %*
if ERRORLEVEL 1 goto error
Expand All @@ -65,10 +68,3 @@ set ERROR_CODE=1
@endlocal & set ERROR_CODE=%ERROR_CODE%

cmd /C exit /B %ERROR_CODE%

:concat
if not defined CLASS_PATH (
set CLASS_PATH="%~1"
) else (
set CLASS_PATH=%CLASS_PATH%;"%~1"
)
16 changes: 6 additions & 10 deletions src/main/assembly/bin/ret.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ goto error
@REM ==== END VALIDATION ====

:init
for %%i in ("%RCT_HOME%\lib\*") do (
call :concat "%%i"
setLocal EnableDelayedExpansion
set CLASS_PATH="
for %%i in ("%RCT_HOME%\lib\*.jar") do (
set CLASS_PATH=!CLASS_PATH!;%%i
)
set CLASS_PATH=!CLASS_PATH!"

set LOG_DIR=%RCT_HOME%\log
set CON_DIR=%RCT_HOME%\conf
set LOG_FILE=%CON_DIR%\log4j2.xml
set CON_FILE=%CON_DIR%\redis-rdb-cli.conf
set MAIN_CLASS=com.moilioncircle.redis.rdb.cli.Ret
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%"
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%" -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dfile.encoding=UTF-8

"%JAVACMD%" %RCT_OPS% -cp %CLASS_PATH% %MAIN_CLASS% %*
if ERRORLEVEL 1 goto error
Expand All @@ -65,10 +68,3 @@ set ERROR_CODE=1
@endlocal & set ERROR_CODE=%ERROR_CODE%

cmd /C exit /B %ERROR_CODE%

:concat
if not defined CLASS_PATH (
set CLASS_PATH="%~1"
) else (
set CLASS_PATH=%CLASS_PATH%;"%~1"
)
16 changes: 6 additions & 10 deletions src/main/assembly/bin/rmt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ goto error
@REM ==== END VALIDATION ====

:init
for %%i in ("%RCT_HOME%\lib\*") do (
call :concat "%%i"
setLocal EnableDelayedExpansion
set CLASS_PATH="
for %%i in ("%RCT_HOME%\lib\*.jar") do (
set CLASS_PATH=!CLASS_PATH!;%%i
)
set CLASS_PATH=!CLASS_PATH!"

set LOG_DIR=%RCT_HOME%\log
set CON_DIR=%RCT_HOME%\conf
set LOG_FILE=%CON_DIR%\log4j2.xml
set CON_FILE=%CON_DIR%\redis-rdb-cli.conf
set MAIN_CLASS=com.moilioncircle.redis.rdb.cli.Rmt
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%"
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%" -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dfile.encoding=UTF-8

"%JAVACMD%" %RCT_OPS% -cp %CLASS_PATH% %MAIN_CLASS% %*
if ERRORLEVEL 1 goto error
Expand All @@ -65,10 +68,3 @@ set ERROR_CODE=1
@endlocal & set ERROR_CODE=%ERROR_CODE%

cmd /C exit /B %ERROR_CODE%

:concat
if not defined CLASS_PATH (
set CLASS_PATH="%~1"
) else (
set CLASS_PATH=%CLASS_PATH%;"%~1"
)
16 changes: 6 additions & 10 deletions src/main/assembly/bin/rst.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ goto error
@REM ==== END VALIDATION ====

:init
for %%i in ("%RCT_HOME%\lib\*") do (
call :concat "%%i"
setLocal EnableDelayedExpansion
set CLASS_PATH="
for %%i in ("%RCT_HOME%\lib\*.jar") do (
set CLASS_PATH=!CLASS_PATH!;%%i
)
set CLASS_PATH=!CLASS_PATH!"

set LOG_DIR=%RCT_HOME%\log
set CON_DIR=%RCT_HOME%\conf
set LOG_FILE=%CON_DIR%\log4j2.xml
set CON_FILE=%CON_DIR%\redis-rdb-cli.conf
set MAIN_CLASS=com.moilioncircle.redis.rdb.cli.Rst
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%"
set RCT_OPS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:+ExitOnOutOfMemoryError -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Dlog4j.configurationFile="%LOG_FILE%" -Dcli.log.path="%LOG_DIR%" -Dconf="%CON_FILE%" -Drct.home="%RCT_HOME%" -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dfile.encoding=UTF-8

"%JAVACMD%" %RCT_OPS% -cp %CLASS_PATH% %MAIN_CLASS% %*
if ERRORLEVEL 1 goto error
Expand All @@ -65,10 +68,3 @@ set ERROR_CODE=1
@endlocal & set ERROR_CODE=%ERROR_CODE%

cmd /C exit /B %ERROR_CODE%

:concat
if not defined CLASS_PATH (
set CLASS_PATH="%~1"
) else (
set CLASS_PATH=%CLASS_PATH%;"%~1"
)
2 changes: 1 addition & 1 deletion src/main/resources/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.6.2
v0.6.3

0 comments on commit b983483

Please sign in to comment.