public class DependSet extends MatchingTask
This task will examine each of the sources against each of the target files. If any target files are out of date with respect to any of the sources, all targets are removed. If any sources or targets do not exist, all targets are removed. Hint: If missing files should be ignored, specify them as include patterns in filesets, rather than using filelists.
This task attempts to optimize speed of dependency checking by comparing only the dates of the oldest target file and the newest source.
Example uses:
fileset
description, location, project
Constructor and Description |
---|
DependSet() |
Modifier and Type | Method and Description |
---|---|
void |
addSrcfilelist(FileList fl)
Add a list of source files.
|
void |
addSrcfileset(FileSet fs)
Add a set of source files.
|
void |
addTargetfilelist(FileList fl)
Add a list of target files.
|
void |
addTargetfileset(FileSet fs)
Add a set of target files.
|
Union |
createSources()
Create a nested sources element.
|
Path |
createTargets()
Create a nested targets element.
|
void |
execute()
Execute the task.
|
void |
setVerbose(boolean b)
In verbose mode missing targets and sources as well as the
modification times of the newest source and latest target will
be logged as info.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public Union createSources()
public void addSrcfileset(FileSet fs)
fs
- the FileSet to add.public void addSrcfilelist(FileList fl)
fl
- the FileList to add.public Path createTargets()
public void addTargetfileset(FileSet fs)
fs
- the FileSet to add.public void addTargetfilelist(FileList fl)
fl
- the FileList to add.public void setVerbose(boolean b)
All deleted files will be logged as well.
b
- booleanpublic void execute() throws BuildException
execute
in class Task
BuildException
- if errors occur.