Skip to content

Commit

Permalink
fix bat syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mujiansu committed Dec 27, 2018
1 parent ade2a54 commit 830e149
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/src/main/bin/startup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if "%OS%" == "Windows_NT" set ENV_PATH=%~dp0%
set conf_dir=%ENV_PATH%\..\conf
set logback_configurationFile=%conf_dir%\logback.xml
set client_mode=Simple
if "%1%" != "" set client_mode=%1%
if not "%1" == "" set client_mode=%1

set CLASSPATH=%conf_dir%
set CLASSPATH=%conf_dir%\..\lib\*;%CLASSPATH%
Expand All @@ -20,7 +20,8 @@ set CANAL_OPTS= -DappName=otter-canal-example -Dlogback.configurationFile="%logb

set JAVA_OPTS= %JAVA_MEM_OPTS% %JAVA_OPTS_EXT% %JAVA_DEBUG_OPT% %CANAL_OPTS%

if "%client_mode%" == "Cluster"
if "%client_mode%" == "Cluster" (
java %JAVA_OPTS% -classpath "%CLASSPATH%" com.alibaba.otter.canal.example.ClusterCanalClientTest
else
) else (
java %JAVA_OPTS% -classpath "%CLASSPATH%" com.alibaba.otter.canal.example.SimpleCanalClientTest
)

0 comments on commit 830e149

Please sign in to comment.