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

Directory watcher fails to exclude folders starting with '.'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.0, 6.1
    • None
    • None
    • OS-X 10.14.14 (Mojave), Magnolia 6.1-SNAPSHOT (EE pro)

    Description

      Users can set the property magnolia.resources.filesystem.observation.excludedDirectories to exclude directories from being observed for changes (see docu).

      On mac or linux, users may want to exclude directories starting with a dot such as .idea or .git. Apparently, when adding directories starting with a dot to the given property, these dirs are _not_excluded.

      Example configurations:

      magnolia.resources.filesystem.observation.excludedDirectories=.idea,META-INF,WEB-INF,cache,docroot,logs,repositories,tmp
      
      magnolia.resources.filesystem.observation.excludedDirectories=\.idea,META-INF,WEB-INF,cache,docroot,logs,repositories,tmp
      

      In both cases .idea is still observed.


       

      Acceptance criteria

      Enable the possibility to exclude "dot-folders" aka "hidden folders".
      Make sure we have a unit test for this case.
      Also make sure that the exclude mechanism works on all supported operating systems. :^)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD