Update cli to work on windows

Original commit: elastic/x-pack-elasticsearch@84f6ba3c1f
This commit is contained in:
Costin Leau 2017-12-14 18:53:01 +02:00
parent 28f1107dad
commit f2792b8d93
1 changed files with 4 additions and 3 deletions

View File

@ -11,11 +11,12 @@ call "%~dp0..\elasticsearch-env.bat" || exit /b 1
call "%~dp0x-pack-env.bat" || exit /b 1
set CLI_JAR=!ES_CLASSPATH!;!ES_HOME!/plugins/x-pack/bin/sql-cli-*.jar
set CLI_JAR=%ES_HOME%/plugins/x-pack/bin/*
%JAVA% ^
-jar "%CLI_JAR%" ^
-cp "%CLI_JAR%" ^
org.elasticsearch.xpack.sql.cli.Cli ^
%*
endlocal
endlocal