org.apache.tools.ant.taskdefs
public class DependSet extends MatchingTask
This task will examine each of the source files against each of the target files. If any target files are out of date with respect to any of the source files, all targets are removed. If any files named in a (src or target) filelist 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. It will stop after the first out of date file is found and remove all targets, rather than exhaustively checking every source vs target combination unnecessarily.
Example uses:
Since: Ant 1.4
UNKNOWN: category="filesystem"
Constructor Summary | |
---|---|
DependSet()
Creates a new DependSet Task.
|
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. |
void | execute()
Executes 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.
Throws: BuildException if errors occur.