| Modifier and Type | Field and Description |
|---|---|
| protected Mapper | |
| private String | |
| private File | |
| private List | |
| private Union | |
| private File | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Mapper | Returns: a mapper to be configuredDefines the FileNameMapper to use (nested mapper element). |
| public Union | Returns: the source resources to configure.Nested resource collections as sources. |
| public boolean | Returns: true if the target(s) is/are up-to-dateImplements org. |
| public void | execute()
Overrides org. |
| private FileNameMapper | |
| private String | |
| protected boolean | |
| public void | setProperty(final String
the name of the property to set if Target is up-to-date. property)The property to set if the target file is more up-to-date than (each of) the source file(s). |
| public void | setSrcfile(final File
the file we are checking against the target file. file)The file that must be older than the target file if the property is to be set. |
| public void | setTargetFile(final File
the file we are checking against. file)The file which must be more up-to-date than (each of) the source file(s) if the property is to be set. |
| public void |
| mapperElement | back to summary |
|---|---|
| protected Mapper mapperElement | |
| property | back to summary |
|---|---|
| private String property | |
| sourceFile | back to summary |
|---|---|
| private File sourceFile | |
| sourceFileSets | back to summary |
|---|---|
| private List<FileSet> sourceFileSets | |
| sourceResources | back to summary |
|---|---|
| private Union sourceResources | |
| targetFile | back to summary |
|---|---|
| private File targetFile | |
| value | back to summary |
|---|---|
| private String value | |
| UpToDate | back to summary |
|---|---|
| public UpToDate() | |
| add | back to summary |
|---|---|
| public void add(FileNameMapper fileNameMapper) A nested filenamemapper
| |
| addSrcfiles | back to summary |
|---|---|
| public void addSrcfiles(final FileSet fs) Nested <srcfiles> element.
| |
| createMapper | back to summary |
|---|---|
| public Mapper createMapper() throws BuildException Defines the FileNameMapper to use (nested mapper element).
| |
| createSrcResources | back to summary |
|---|---|
| public Union createSrcResources() Nested resource collections as sources.
| |
| eval | back to summary |
|---|---|
| public boolean eval() Implements org. Evaluate (all) target and source file(s) to see if the target(s) is/are up-to-date.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Sets property to true if target file(s) have a more recent timestamp than (each of) the corresponding source file(s).
| |
| getMapper | back to summary |
|---|---|
| private FileNameMapper getMapper() | |
| getValue | back to summary |
|---|---|
| private String getValue() Returns the value, or "true" if a specific value wasn't provided. | |
| scanDir | back to summary |
|---|---|
| protected boolean scanDir(File srcDir, String[] files) Scan a directory for files to check for "up to date"ness | |
| setProperty | back to summary |
|---|---|
| public void setProperty(final String property) The property to set if the target file is more up-to-date than (each of) the source file(s).
| |
| setSrcfile | back to summary |
|---|---|
| public void setSrcfile(final File file) The file that must be older than the target file if the property is to be set.
| |
| setTargetFile | back to summary |
|---|---|
| public void setTargetFile(final 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.
| |
| setValue | back to summary |
|---|---|
| public void setValue(final String value) The 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'.
| |