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

Improve library loading with base path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: