private boolean checkFileModifications() throws Exception {
  long destFileTime=destFile.lastModified();
  if (sourceFile.lastModified() > destFileTime) {
    logger.debug("Source file was modified ");
    return true;
  }
  Properties metadata=restoreFileModifications(metaDataFile);
  if (metadata == null) {
    return true;
  }
  SAXParserFactory parserFactory=SAXParserFactory.newInstance();
  SAXParser parser=parserFactory.newSAXParser();
  TimeCheckerHandler handler=new TimeCheckerHandler(baseDir,metadata);
  parser.parse(sourceFile,handler);
  return handler.isModified();
}

private boolean checkFileModifications ( ) throws Exception { long destFileTime = destFile . lastModified ( ) ; if ( sourceFile . lastModified ( ) > destFileTime ) { logger . debug ( "Source file was modified " ) ; return true ; } Properties metadata = restoreFileModifications ( metaDataFile ) ; if ( metadata == null ) { return true ; } SAXParserFactory parserFactory = SAXParserFactory . newInstance ( ) ; SAXParser parser = parserFactory . newSAXParser ( ) ; TimeCheckerHandler handler = new TimeCheckerHandler ( baseDir , metadata ) ; parser . parse ( sourceFile , handler ) ; return handler . isModified ( ) ; }
check for modifications of included files .
