mirror of https://github.com/apache/lucene.git
SOLR-9151: Fix SolrCLI so that bin/solr -e cloud example can be run from any CWD
This commit is contained in:
parent
e44509f2df
commit
50c4f58276
|
@ -234,6 +234,8 @@ Bug Fixes
|
||||||
|
|
||||||
* SOLR-9134: Fix RestManager.addManagedResource return value. (Christine Poerschke)
|
* SOLR-9134: Fix RestManager.addManagedResource return value. (Christine Poerschke)
|
||||||
|
|
||||||
|
* SOLR-9151: Fix SolrCLI so that bin/solr -e cloud example can be run from any CWD (janhoy)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.
|
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.
|
||||||
|
|
|
@ -2493,7 +2493,7 @@ public class SolrCLI {
|
||||||
String solrHome = solrHomeDir.getAbsolutePath();
|
String solrHome = solrHomeDir.getAbsolutePath();
|
||||||
|
|
||||||
// don't display a huge path for solr home if it is relative to the cwd
|
// don't display a huge path for solr home if it is relative to the cwd
|
||||||
if (!isWindows && solrHome.startsWith(cwdPath))
|
if (!isWindows && cwdPath.length() > 1 && solrHome.startsWith(cwdPath))
|
||||||
solrHome = solrHome.substring(cwdPath.length()+1);
|
solrHome = solrHome.substring(cwdPath.length()+1);
|
||||||
|
|
||||||
String startCmd =
|
String startCmd =
|
||||||
|
|
Loading…
Reference in New Issue