code: private String[] scan( FileSet fileSet )
      {
          File basedir = new File( fileSet.getDirectory() );
          if ( !basedir.exists() || !basedir.isDirectory() )
          {
              return null;
          }
  
          DirectoryScanner scanner = new DirectoryScanner();
  
          List<String> includes = fileSet.getIncludes();
          List<String> excludes = fileSet.getExcludes();
  
          if ( includes != null && includes.size() > 0 )
          {
              scanner.setIncludes( includes.toArray( new String[0] ) );
          }
  
          if ( excludes != null && excludes.size() > 0 )
          {
              scanner.setExcludes( excludes.toArray( new String[0] ) );
          }
  
          scanner.setBasedir( basedir );
  
          scanner.scan();
          return scanner.getIncludedFiles();
      }
docs: A {@link DirectoryScanner} boiler plate.
  
  @param fileSet {@link FileSet} to scan
  @return the included paths