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

Improve library loading with base path

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0
    • Component/s: None
    • Labels:
      None

      Description

      The issue occurs when users copy Solr's example "solr home" directory somewhere else, not relative to Solr's installation and paths break. Paths like these:

      <lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />
      <lib dir="../../contrib/extraction/lib" regex=".*\.jar" />
      

      I've addressed this in my own projects by introducing a new system property construct like dir="${solr.install.dir}/contrib/extraction/lib". But this requires a change to solrconfig.xml for every <lib> element. There's got to be a better way such that Solr can be installed in one place, and <lib> directives can readily access the Solr "installation" directory path.

        Attachments

          Activity

            People

            • Assignee:
              ehatcher Erik Hatcher
              Reporter:
              ehatcher Erik Hatcher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: