org.apache.tools.ant.taskdefs
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:
Since: Ant 1.4
UNKNOWN: category="filesystem"
Method Summary | |
---|---|
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. |
Parameters: fl the FileList to add.
Parameters: fs the FileSet to add.
Parameters: fl the FileList to add.
Parameters: fs the FileSet to add.
Returns: a Union instance.
Returns: a Union instance.
Throws: BuildException if errors occur.