"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/bin/elasticsearch-cli.bat" (6 Jan 2022, 867 Bytes) of package /linux/www/elasticsearch-6.8.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 call "%~dp0elasticsearch-env.bat" || exit /b 1
    2 
    3 if defined ES_ADDITIONAL_SOURCES (
    4   for %%a in ("%ES_ADDITIONAL_SOURCES:;=","%") do (
    5     call "%~dp0%%a"
    6   )
    7 )
    8 
    9 if defined ES_ADDITIONAL_CLASSPATH_DIRECTORIES (
   10   for %%a in ("%ES_ADDITIONAL_CLASSPATH_DIRECTORIES:;=","%") do (
   11     set ES_CLASSPATH=!ES_CLASSPATH!;!ES_HOME!/%%a/*
   12   )
   13 )
   14 
   15 rem use a small heap size for the CLI tools, and thus the serial collector to
   16 rem avoid stealing many CPU cycles; a user can override by setting ES_JAVA_OPTS
   17 set ES_JAVA_OPTS=-Xms4m -Xmx64m -XX:+UseSerialGC %ES_JAVA_OPTS%
   18 
   19 %JAVA% ^
   20   %ES_JAVA_OPTS% ^
   21   -Des.path.home="%ES_HOME%" ^
   22   -Des.path.conf="%ES_PATH_CONF%" ^
   23   -Des.distribution.flavor="%ES_DISTRIBUTION_FLAVOR%" ^
   24   -Des.distribution.type="%ES_DISTRIBUTION_TYPE%" ^
   25   -cp "%ES_CLASSPATH%" ^
   26   "%ES_MAIN_CLASS%" ^
   27   %*
   28   
   29 exit /b %ERRORLEVEL%