private boolean checkIvyXmlFile(File ivyXmlFile) throws ParserConfigurationException, SAXException, IOException {
  log("Scanning: " + ivyXmlFile.getPath(),verboseLevel);
  XMLReader xmlReader=XMLReaderFactory.createXMLReader();
  DependencyRevChecker revChecker=new DependencyRevChecker(ivyXmlFile);
  xmlReader.setContentHandler(revChecker);
  xmlReader.setErrorHandler(revChecker);
  xmlReader.parse(new InputSource(ivyXmlFile.getAbsolutePath()));
  return !revChecker.fail;
}

private boolean checkIvyXmlFile ( File ivyXmlFile ) throws ParserConfigurationException , SAXException , IOException { log ( "Scanning: " + ivyXmlFile . getPath ( ) , verboseLevel ) ; XMLReader xmlReader = XMLReaderFactory . createXMLReader ( ) ; DependencyRevChecker revChecker = new DependencyRevChecker ( ivyXmlFile ) ; xmlReader . setContentHandler ( revChecker ) ; xmlReader . setErrorHandler ( revChecker ) ; xmlReader . parse ( new InputSource ( ivyXmlFile . getAbsolutePath ( ) ) ) ; return ! revChecker . fail ; }
check a single ivy . xml file for dependencies ' versions in rev = " $ { / org / name } " format . returns false if problems are found , true otherwise .
