text
stringlengths 0
834k
|
|---|
IF ""%1""==""-c"" goto set_cloud_mode
|
IF ""%1""==""-cloud"" goto set_cloud_mode
|
IF ""%1""==""-d"" goto set_server_dir
|
IF ""%1""==""-dir"" goto set_server_dir
|
IF ""%1""==""-s"" goto set_solr_home_dir
|
IF ""%1""==""-t"" goto set_solr_data_dir
|
IF ""%1""==""-solr.home"" goto set_solr_home_dir
|
IF ""%1""==""-e"" goto set_example
|
IF ""%1""==""-example"" goto set_example
|
IF ""%1""==""-h"" goto set_host
|
IF ""%1""==""-host"" goto set_host
|
IF ""%1""==""-m"" goto set_memory
|
IF ""%1""==""-memory"" goto set_memory
|
IF ""%1""==""-p"" goto set_port
|
IF ""%1""==""-port"" goto set_port
|
IF ""%1""==""-z"" goto set_zookeeper
|
IF ""%1""==""-zkhost"" goto set_zookeeper
|
IF ""%1""==""-zkHost"" goto set_zookeeper
|
IF ""%1""==""-a"" goto set_addl_opts
|
IF ""%1""==""-addlopts"" goto set_addl_opts
|
IF ""%1""==""-j"" goto set_addl_jetty_config
|
IF ""%1""==""-jettyconfig"" goto set_addl_jetty_config
|
IF ""%1""==""-noprompt"" goto set_noprompt
|
IF ""%1""==""-k"" goto set_stop_key
|
IF ""%1""==""-key"" goto set_stop_key
|
IF ""%1""==""-all"" goto set_stop_all
|
IF ""%firstTwo%""==""-D"" goto set_passthru
|
IF NOT ""%1""=="""" goto invalid_cmd_line
|
goto invalid_cmd_line
|
:set_script_cmd
|
set SCRIPT_CMD=%1
|
SHIFT
|
goto parse_args
|
:set_foreground_mode
|
set FG=1
|
SHIFT
|
goto parse_args
|
:set_verbose
|
set verbose=1
|
set ""PASS_TO_RUN_EXAMPLE=--verbose !PASS_TO_RUN_EXAMPLE!""
|
SHIFT
|
goto parse_args
|
:set_debug
|
set SOLR_LOG_LEVEL=DEBUG
|
set ""PASS_TO_RUN_EXAMPLE=!PASS_TO_RUN_EXAMPLE! -Dsolr.log.level=%SOLR_LOG_LEVEL%""
|
SHIFT
|
goto parse_args
|
:set_warn
|
set SOLR_LOG_LEVEL=WARN
|
set ""PASS_TO_RUN_EXAMPLE=!PASS_TO_RUN_EXAMPLE! -Dsolr.log.level=%SOLR_LOG_LEVEL%""
|
SHIFT
|
goto parse_args
|
:set_cloud_mode
|
set SOLR_MODE=solrcloud
|
SHIFT
|
goto parse_args
|
:set_server_dir
|
set ""arg=%~2""
|
IF ""%arg%""=="""" (
|
set SCRIPT_ERROR=Directory name is required!
|
goto invalid_cmd_line
|
)
|
set firstChar=%arg:~0,1%
|
IF ""%firstChar%""==""-"" (
|
set SCRIPT_ERROR=Expected directory but found %2 instead!
|
goto invalid_cmd_line
|
)
|
REM See if they are using a short-hand name relative from the Solr tip directory
|
IF EXIST ""%SOLR_TIP%\%~2"" (
|
set ""SOLR_SERVER_DIR=%SOLR_TIP%\%~2""
|
) ELSE (
|
set ""SOLR_SERVER_DIR=%~2""
|
)
|
SHIFT
|
SHIFT
|
goto parse_args
|
:set_solr_home_dir
|
set ""arg=%~2""
|
IF ""%arg%""=="""" (
|
set SCRIPT_ERROR=Directory name is required!
|
goto invalid_cmd_line
|
)
|
set firstChar=%arg:~0,1%
|
IF ""%firstChar%""==""-"" (
|
set SCRIPT_ERROR=Expected directory but found %2 instead!
|
goto invalid_cmd_line
|
)
|
set ""SOLR_HOME=%~2""
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.