code: protected String[] getFilesToIncludes(File baseDir, String[] includes, String[] excludes) {
          final DirectoryScanner scanner = new DirectoryScanner();
          scanner.setBasedir(baseDir);
  
          if (excludes != null) {
              scanner.setExcludes(excludes);
          }
  
          scanner.addDefaultExcludes();
          scanner.scan();
  
          final String[] includedFiles = scanner.getIncludedFiles();
          for (int i = 0; i < includedFiles.length; i++) {
              includedFiles[i] = "/" + includedFiles[i].replace(File.separator, "/");
          }
          return includedFiles;
  
      }
docs: Returns the file to copy. If the includes are <tt>null</tt> or empty, the default includes are used.
  
  @param baseDir the base directory to start from
  @param includes the includes
  @param excludes the excludes
  @return the files to copy