private static void scan(List<ScannerRegistration> scanners,URL[] urls){
  for (  ScannerRegistration scannerRegistration : scanners) {
    scannerRegistration.startScanning();
  }
  for (  final URL url : urls) {
    try {
      if (resourceExists(url)) {
        URLIterator it=IteratorFactory.create(url,scanners);
        it.search();
      }
    }
 catch (    IOException e) {
      throw new ScannerException("Error running crux scanners.",e);
    }
  }
  for (  ScannerRegistration scannerRegistration : scanners) {
    List<ScannerMatch> matches=scannerRegistration.getScanMatches();
    if (matches != null && matches.size() > 0) {
      ScannerCallback callback=scannerRegistration.getCallback();
      if (callback != null) {
        callback.onFound(matches);
      }
    }
    scannerRegistration.endScanning();
  }
}

private static void scan ( List < ScannerRegistration > scanners , URL [ ] urls ) { for ( ScannerRegistration scannerRegistration : scanners ) { scannerRegistration . startScanning ( ) ; } for ( final URL url : urls ) { try { if ( resourceExists ( url ) ) { URLIterator it = IteratorFactory . create ( url , scanners ) ; it . search ( ) ; } } catch ( IOException e ) { throw new ScannerException ( "Error running crux scanners." , e ) ; } } for ( ScannerRegistration scannerRegistration : scanners ) { List < ScannerMatch > matches = scannerRegistration . getScanMatches ( ) ; if ( matches != null && matches . size ( ) > 0 ) { ScannerCallback callback = scannerRegistration . getCallback ( ) ; if ( callback != null ) { callback . onFound ( matches ) ; } } scannerRegistration . endScanning ( ) ; } }
scan the project and returns the result associated to the given scanner
