From 4350a1d01c9c26a2a43e390444a1a5225fe8105d Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Tue, 28 Oct 2014 03:05:19 +0000 Subject: [PATCH] SOLR-6661: Adjust all example configurations to allow overriding error-prone relative paths for solrconfig.xml references with solr.install.dir system property; bin/solr scripts will set it appropriately. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1634770 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 5 +++++ solr/bin/solr | 1 + solr/bin/solr.cmd | 4 ++-- .../example-DIH/solr/db/conf/solrconfig.xml | 18 +++++++-------- .../example-DIH/solr/mail/conf/solrconfig.xml | 22 +++++++++---------- .../example-DIH/solr/rss/conf/solrconfig.xml | 18 +++++++-------- .../example-DIH/solr/solr/conf/solrconfig.xml | 18 +++++++-------- .../example-DIH/solr/tika/conf/solrconfig.xml | 20 ++++++++--------- .../solr/collection1/conf/solrconfig.xml | 16 +++++++------- .../solr/collection1/conf/solrconfig.xml | 16 +++++++------- 10 files changed, 72 insertions(+), 66 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index c6c736ab4c1..c6af7f2d1c8 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -192,6 +192,7 @@ New Features * SOLR-6655: SimplePostTool now features -Dhost, -Dport, and -Dc (for core/collection) properties to allow easier overriding of just the right piece of the Solr URL. + (ehatcher) Bug Fixes ---------------------- @@ -374,6 +375,10 @@ Other Changes * SOLR-6651: Fix wrong timeout logged in waitForReplicasToComeUp. (shalin) +* SOLR-6661: Adjust all example configurations to allow overriding error-prone + relative paths for solrconfig.xml references with solr.install.dir + system property; bin/solr scripts will set it appropriately. (ehatcher) + ================== 4.10.1 ================== Bug Fixes diff --git a/solr/bin/solr b/solr/bin/solr index c67b852f687..fb430b3fad2 100755 --- a/solr/bin/solr +++ b/solr/bin/solr @@ -877,6 +877,7 @@ function launch_solr() { -DSTOP.PORT=$stop_port -DSTOP.KEY=$STOP_KEY \ $SOLR_HOST_ARG -Djetty.port=$SOLR_PORT \ -Dsolr.solr.home=$SOLR_HOME \ +-Dsolr.install.dir=$SOLR_TIP \ -Duser.timezone=$SOLR_TIMEZONE \ -Djava.net.preferIPv4Stack=true -Dsolr.autoSoftCommit.maxTime=3000" diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd index 3eb217320a1..27c9cc5de8b 100644 --- a/solr/bin/solr.cmd +++ b/solr/bin/solr.cmd @@ -522,10 +522,10 @@ cd "%SOLR_SERVER_DIR%" IF "%FG%"=="1" ( REM run solr in the foreground "%JAVA%" -server -Xss256k %SOLR_JAVA_MEM% %START_OPTS% -DSTOP.PORT=%STOP_PORT% -DSTOP.KEY=%STOP_KEY% ^ - -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -jar start.jar + -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -Dsolr.install.dir="%SOLR_TIP%" -jar start.jar ) ELSE ( START "" "%JAVA%" -server -Xss256k %SOLR_JAVA_MEM% %START_OPTS% -DSTOP.PORT=%STOP_PORT% -DSTOP.KEY=%STOP_KEY% ^ - -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -jar start.jar > "%SOLR_SERVER_DIR%\logs\solr-%SOLR_PORT%-console.log" + -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -Dsolr.install.dir="%SOLR_TIP%" -jar start.jar > "%SOLR_SERVER_DIR%\logs\solr-%SOLR_PORT%-console.log" ) goto done diff --git a/solr/example/example-DIH/solr/db/conf/solrconfig.xml b/solr/example/example-DIH/solr/db/conf/solrconfig.xml index 03b437bbb29..a0e0191c7f3 100755 --- a/solr/example/example-DIH/solr/db/conf/solrconfig.xml +++ b/solr/example/example-DIH/solr/db/conf/solrconfig.xml @@ -72,19 +72,19 @@ The examples below can be used to load some solr-contribs along with their external dependencies. --> - + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +