Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-989

Undeprecate DirectoryScanner and MatchPattern(s)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • maven-shared-utils-3.3.4
    • None
    • maven-shared-utils
    • None

    Description

      In MSHARED-898 DirectoryScanner has been deprecated. Instead using the java.nio.file.DirectoryStream is now recommended.
      The latter is often no replacement as the parametrization of DirectoryScanner with Ant-style globs for includes/excludes is not supported. Also the DEFAULTEXCLUDES are not part of Java NIO DirectoryStream either.

      The same applies to MatchPatterns, which is deprecated and now recommends using java.nio.filejava.nio.file.DirectoryStream.Filter<T>. Please instead provide a Filter for Java NIO for those patterns (regex and ant) and make DirectoryScanner use File NIO internally while keeping API compatibility.

      Otherwise every consumer of DirectoryScanner needs to come up with a custom implementation of pattern matching and a lot of glue code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: