private boolean areArchiveFileChecksumsEqual(){
  if (swcFileChecksums == null) {
    if (Trace.swcChecksum) {
      Trace.trace("areArchiveFileChecksumsEqual: no file checksum map, not equal");
    }
    return false;
  }
  Set<Map.Entry<String,Long>> dataSet=archiveFileChecksums.entrySet();
  for (  Map.Entry<String,Long> entry : dataSet) {
    String filename=entry.getKey();
    Long dataFileLastModified=entry.getValue();
    Long localFileLastModified=null;
    LocalFile localFile=new LocalFile(new File(filename));
    localFileLastModified=new Long(localFile.getLastModified());
    if (!dataFileLastModified.equals(localFileLastModified)) {
      if (Trace.swcChecksum) {
        Trace.trace("areArchiveFileChecksumsEqual: not equal");
        Trace.trace("filename = " + filename);
        Trace.trace("last modified1 = " + dataFileLastModified);
        Trace.trace("last modified2 = " + localFileLastModified);
      }
      return false;
    }
  }
  if (Trace.swcChecksum) {
    Trace.trace("areArchiveFileChecksumsEqual: equal");
  }
  return true;
}

private boolean areArchiveFileChecksumsEqual ( ) { if ( swcFileChecksums == null ) { if ( Trace . swcChecksum ) { Trace . trace ( "areArchiveFileChecksumsEqual: no file checksum map, not equal" ) ; } return false ; } Set < Map . Entry < String , Long > > dataSet = archiveFileChecksums . entrySet ( ) ; for ( Map . Entry < String , Long > entry : dataSet ) { String filename = entry . getKey ( ) ; Long dataFileLastModified = entry . getValue ( ) ; Long localFileLastModified = null ; LocalFile localFile = new LocalFile ( new File ( filename ) ) ; localFileLastModified = new Long ( localFile . getLastModified ( ) ) ; if ( ! dataFileLastModified . equals ( localFileLastModified ) ) { if ( Trace . swcChecksum ) { Trace . trace ( "areArchiveFileChecksumsEqual: not equal" ) ; Trace . trace ( "filename = " + filename ) ; Trace . trace ( "last modified1 = " + dataFileLastModified ) ; Trace . trace ( "last modified2 = " + localFileLastModified ) ; } return false ; } } if ( Trace . swcChecksum ) { Trace . trace ( "areArchiveFileChecksumsEqual: equal" ) ; } return true ; }
test if the archive files in the swc have changed since the last compile .
