Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3909

Add a magnolia.basedir configurable property to easily change the base folder location for repositories, cache and logs

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5
    • None
    • core
    • None

      All the folders in the default magnolia.properties file are now relative to the magnolia.app.rootdir property:

      magnolia.cache.startdir=${magnolia.app.rootdir}/cache
      magnolia.upload.tmpdir=${magnolia.app.rootdir}/tmp
      magnolia.exchange.history=${magnolia.app.rootdir}/history
      magnolia.repositories.home=${magnolia.app.rootdir}/repositories
      magnolia.logs.dir=${magnolia.app.rootdir}/logs
      

      If we want to change the base location where those dirs are written, we have to change any single property listed above, since there is no way to manually set magnolia.app.rootdir to a different value (that would break any webapp-relative path).

      Introducing a single configurable magnolia.basedir property which delegates by default to magnolia.app.rootdir makes things easier:

      magnolia.basedir=${magnolia.app.rootdir}
      magnolia.cache.startdir=${magnolia.basedir}/cache
      magnolia.upload.tmpdir=${magnolia.basedir}/tmp
      magnolia.exchange.history=${magnolia.basedir}/history
      magnolia.repositories.home=${magnolia.basedir}/repositories
      magnolia.logs.dir=${magnolia.basedir}/logs
      

      with this, moving all the folders outside the webapp will require a single configuration, e.g.:

      magnolia.basedir=/tmp/mytest
      

        Acceptance criteria

              had Jan Haderka
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD