code: public List<File> scan(Resource resource) {
          Scanner scanner = buildContext.newScanner(new File(resource.getDirectory()), true);
          setupScanner(scanner, resource);
          scanner.scan();
          List<File> files = new ArrayList<File>();
          for (String file : scanner.getIncludedFiles()) {
              files.add(new File(resource.getDirectory(), file));
          }
          return files;
      }
docs: Scans a resource directory (and sub-subdirectories) returning all AsciiDoc documents found.
  
  @param resource {@link Resource} to scan (the directory property is mandatory)
  @return List of found documents matching the resource properties