Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14421

New examples in solr.in.cmd in Solr 8.5 don't work as provided

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 8.5, 8.5.1
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
      None

      Description

       

      These SOLR_OPTS examples need to be prefixed with set and don't work when surrounded with quotes https://github.com/apache/lucene-solr/blob/master/solr/bin/solr.in.cmd#L194-L199

      REM SOLR_OPTS="%SOLR_OPTS% -Dsolr.environment=prod"
      
      REM Specifies the path to a common library directory that will be shared across all cores.
      REM Any JAR files in this directory will be added to the search path for Solr plugins.
      REM If the specified path is not absolute, it will be relative to `%SOLR_HOME%`.
      REM SOLR_OPTS="%SOLR_OPTS% -Dsolr.sharedLib=/path/to/lib"
      

      Without set you will get "'SOLR_OPTS' is not recognized as an internal or external command, operable program or batch file."

      After adding set, with the quotes you get "-Dsolr.environment=prod was unexpected at this time."

      I'll attach a patch

       

        Attachments

        1. SOLR-14421.patch
          3 kB
          Colvin Cowie

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              cjcowie Colvin Cowie
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: