org.apache.torque.util
Class ChangeDetector

java.lang.Object
  extended by org.apache.torque.util.ChangeDetector

public class ChangeDetector
extends Object


Field Summary
(package private)  File controlFile
           
(package private)  List<File> files
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
ChangeDetector()
           
ChangeDetector(File controlFile, List<File> files)
           
 
Method Summary
 File getControlFile()
           
 List<File> getFiles()
           
 boolean isChanged()
          Return true if any file in the list of files has a last modified timestamp newer than the control file or if the control file does not exist
 void setControlFile(File controlFile)
           
 void setFiles(List<File> files)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

controlFile

File controlFile

files

List<File> files
Constructor Detail

ChangeDetector

public ChangeDetector()

ChangeDetector

public ChangeDetector(File controlFile,
                      List<File> files)
Method Detail

isChanged

public boolean isChanged()
Return true if any file in the list of files has a last modified timestamp newer than the control file or if the control file does not exist


getControlFile

public File getControlFile()

setControlFile

public void setControlFile(File controlFile)

getFiles

public List<File> getFiles()

setFiles

public void setFiles(List<File> files)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.