You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/07/10 14:08:32 UTC

[solr] branch main updated: Pass verbose flag to solr start when using example (#1766)

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 5b38cf5c97c Pass verbose flag to solr start when using example (#1766)
5b38cf5c97c is described below

commit 5b38cf5c97ccb28dfcda04246bdd8a0b54c80dd1
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon Jul 10 10:08:27 2023 -0400

    Pass verbose flag to solr start when using example (#1766)
---
 solr/core/src/java/org/apache/solr/cli/RunExampleTool.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
index 22552c2a62a..bcd76b1d1cb 100644
--- a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
+++ b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
@@ -608,6 +608,7 @@ public class RunExampleTool extends ToolBase {
     String memArg = (memory != null) ? " -m " + memory : "";
     String cloudModeArg = cloudMode ? "-cloud " : "";
     String forceArg = cli.hasOption("force") ? " -force" : "";
+    String verboseArg = verbose ? "-V" : "";
 
     String addlOpts = cli.getOptionValue('a');
     String addlOptsArg = (addlOpts != null) ? " -a \"" + addlOpts + "\"" : "";
@@ -628,7 +629,7 @@ public class RunExampleTool extends ToolBase {
     String startCmd =
         String.format(
             Locale.ROOT,
-            "\"%s\" start %s -p %d -s \"%s\" %s %s %s %s %s %s",
+            "\"%s\" start %s -p %d -s \"%s\" %s %s %s %s %s %s %s",
             callScript,
             cloudModeArg,
             port,
@@ -637,6 +638,7 @@ public class RunExampleTool extends ToolBase {
             zkHostArg,
             memArg,
             forceArg,
+            verboseArg,
             extraArgs,
             addlOptsArg);
     startCmd = startCmd.replaceAll("\\s+", " ").trim(); // for pretty printing