You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by an...@apache.org on 2015/05/23 11:59:34 UTC
svn commit: r1681305 -
/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java
Author: andyetitmoves
Date: Sat May 23 09:59:34 2015
New Revision: 1681305
URL: http://svn.apache.org/r1681305
Log:
SOLR-7545: Replace some hardcoded occurrences of default URL
Modified:
lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java?rev=1681305&r1=1681304&r2=1681305&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SolrCLI.java Sat May 23 09:59:34 2015
@@ -1370,7 +1370,7 @@ public class SolrCLI {
.withArgName("URL")
.hasArg()
.isRequired(false)
- .withDescription("Base Solr URL, default is http://localhost:8983/solr")
+ .withDescription("Base Solr URL, default is " + DEFAULT_SOLR_URL)
.create("solrUrl"),
OptionBuilder
.withArgName("NAME")
@@ -1396,7 +1396,7 @@ public class SolrCLI {
@Override
public int runTool(CommandLine cli) throws Exception {
- String solrUrl = cli.getOptionValue("solrUrl", "http://localhost:8983/solr");
+ String solrUrl = cli.getOptionValue("solrUrl", DEFAULT_SOLR_URL);
if (!solrUrl.endsWith("/"))
solrUrl += "/";
@@ -1532,7 +1532,7 @@ public class SolrCLI {
@Override
public int runTool(CommandLine cli) throws Exception {
- String solrUrl = cli.getOptionValue("solrUrl", "http://localhost:8983/solr");
+ String solrUrl = cli.getOptionValue("solrUrl", DEFAULT_SOLR_URL);
if (!solrUrl.endsWith("/"))
solrUrl += "/";
@@ -1577,7 +1577,7 @@ public class SolrCLI {
.withArgName("URL")
.hasArg()
.isRequired(false)
- .withDescription("Base Solr URL, default is http://localhost:8983/solr")
+ .withDescription("Base Solr URL, default is " + DEFAULT_SOLR_URL)
.create("solrUrl"),
OptionBuilder
.withArgName("NAME")
@@ -1611,7 +1611,7 @@ public class SolrCLI {
LogManager.getLogger("org.apache.zookeeper").setLevel(Level.ERROR);
LogManager.getLogger("org.apache.solr.common.cloud").setLevel(Level.WARN);
- String solrUrl = cli.getOptionValue("solrUrl", "http://localhost:8983/solr");
+ String solrUrl = cli.getOptionValue("solrUrl", DEFAULT_SOLR_URL);
if (!solrUrl.endsWith("/"))
solrUrl += "/";