Package org.apache.tools.ant.taskdefs
Class UpToDate
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.UpToDate
- 
Field SummaryFieldsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(FileNameMapper fileNameMapper) A nested filenamemappervoidaddSrcfiles(FileSet fs) Nested <srcfiles> element.Defines the FileNameMapper to use (nested mapper element).Nested resource collections as sources.booleaneval()Evaluate (all) target and source file(s) to see if the target(s) is/are up-to-date.voidexecute()Sets property to true if target file(s) have a more recent timestamp than (each of) the corresponding source file(s).protected booleanScan a directory for files to check for "up to date"nessvoidsetProperty(String property) The property to set if the target file is more up-to-date than (each of) the source file(s).voidsetSrcfile(File file) The file that must be older than the target file if the property is to be set.voidsetTargetFile(File file) The file which must be more up-to-date than (each of) the source file(s) if the property is to be set.voidThe value to set the named property to if the target file is more up-to-date than (each of) the source file(s).Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Field Details- 
mapperElement
 
- 
- 
Constructor Details- 
UpToDatepublic UpToDate()
 
- 
- 
Method Details- 
setPropertyThe property to set if the target file is more up-to-date than (each of) the source file(s).- Parameters:
- property- the name of the property to set if Target is up-to-date.
 
- 
setValueThe value to set the named property to if the target file is more up-to-date than (each of) the source file(s). Defaults to 'true'.- Parameters:
- value- the value to set the property to if Target is up-to-date
 
- 
setTargetFileThe file which must be more up-to-date than (each of) the source file(s) if the property is to be set.- Parameters:
- file- the file we are checking against.
 
- 
setSrcfileThe file that must be older than the target file if the property is to be set.- Parameters:
- file- the file we are checking against the target file.
 
- 
addSrcfiles
- 
createSrcResourcesNested resource collections as sources.- Returns:
- the source resources to configure.
- Since:
- Ant 1.7
 
- 
createMapperDefines the FileNameMapper to use (nested mapper element).- Returns:
- a mapper to be configured
- Throws:
- BuildException- if more than one mapper is defined
 
- 
addA nested filenamemapper- Parameters:
- fileNameMapper- the mapper to add
- Since:
- Ant 1.6.3
 
- 
eval
- 
executeSets property to true if target file(s) have a more recent timestamp than (each of) the corresponding source file(s).- Overrides:
- executein class- Task
- Throws:
- BuildException- on error
 
- 
scanDir
 
-