lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [lucene-solr] branch jira/solr-13662-3 updated: SOLR-13662: Adding Windows script support
Date Thu, 14 Nov 2019 02:15:34 GMT
This is an automated email from the ASF dual-hosted git repository.

ishan pushed a commit to branch jira/solr-13662-3
in repository

The following commit(s) were added to refs/heads/jira/solr-13662-3 by this push:
     new b92dbde  SOLR-13662: Adding Windows script support
b92dbde is described below

commit b92dbde80e57cc2132184d17507b04eec5b0c0ff
Author: Ishan Chattopadhyaya <>
AuthorDate: Thu Nov 14 07:45:22 2019 +0530

    SOLR-13662: Adding Windows script support
 solr/bin/solr.cmd | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index 221b514..792e621 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -215,6 +215,7 @@ IF "%1"=="-version" goto get_version
 IF "%1"=="assert" goto run_assert
 IF "%1"=="autoscaling" goto run_autoscaling
 IF "%1"=="export" goto run_export
+IF "%1"=="package" goto run_package
 REM Only allow the command to be the first argument, assume start if not supplied
 IF "%1"=="start" goto set_script_cmd
@@ -1422,6 +1423,15 @@ goto done:
   org.apache.solr.util.SolrCLI %*
 goto done:
+REM TODO: Compute the running Solr URL and populate it as a parameter (as has been done for
the shell script)
+REM Without that, users will have to supply -solrUrl parameter in every request. Life can
be so hard for Windows users!
+  -Dlog4j.configurationFile="file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml" ^
+  -classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"
+  org.apache.solr.util.SolrCLI %*
+goto done:
 IF [%1]==[] goto run_config
 IF "%1"=="-z" goto set_config_zk

View raw message