Example #1
0
 private void scan(Vfs.File file) {
   String input = file.getRelativePath();
   if (configuration.acceptsInput(input)) {
     for (Scanner scanner : configuration.getScanners()) {
       try {
         if (scanner.acceptsInput(input)) {
           scanner.scan(file);
         }
       } catch (Exception e) {
         log.warn(
             "could not scan file " + file.getFullPath() + " with scanner " + scanner.getName(),
             e);
       }
     }
   }
 }