code: private Set<File> scanAntStylePaths(List<String> antStylePaths, int symLinkDepth, String[] excludes) {
          final Set<File> paths = new HashSet<>();
          for (String file : antStylePaths) {
              LOGGER.debug("Scanning {}", file);
              final DirectoryScanner scanner = new DirectoryScanner();
              String include = file.replace('\\', '/');
              final File baseDir;
              final int pos = getLastFileSeparator(include);
              final String tmpBase = include.substring(0, pos);
              final String tmpInclude = include.substring(pos + 1);
              if (tmpInclude.indexOf('*') >= 0 || tmpInclude.indexOf('?') >= 0
                      || new File(include).isFile()) {
                  baseDir = new File(tmpBase);
                  include = tmpInclude;
              } else {
                  baseDir = new File(tmpBase, tmpInclude);
                  include = "**/*";
              }
  
              scanner.setBasedir(baseDir);
              final String[] includes = {include};
              scanner.setIncludes(includes);
              scanner.setMaxLevelsOfSymlinks(symLinkDepth);
              if (symLinkDepth <= 0) {
                  scanner.setFollowSymlinks(false);
              }
              if (excludes != null && excludes.length > 0) {
                  scanner.addExcludes(excludes);
              }
              scanner.scan();
              if (scanner.getIncludedFilesCount() > 0) {
                  for (String s : scanner.getIncludedFiles()) {
                      final File f = new File(baseDir, s);
                      LOGGER.debug("Found file {}", f.toString());
                      paths.add(f);
                  }
              }
          }
          return paths;
      }
docs: Scans the give Ant Style paths and collects the actual files.
  
  @param antStylePaths a list of ant style paths to scan for actual files
  @param symLinkDepth the depth to traverse symbolic links
  @param excludes an array of ant style excludes
  @return returns the set of identified files