Name
dependset
Synopsis
Manages dependencies between files, removing all target files if any are out-of-date with respect to a group of source files. This task does not perform a positional, file-by-file timestamp comparison. Instead, it compares the most recent timestamp from the group of source files to the most recent timestamp from the group of all target files.
Attributes
None.
Content
Requires at least one of either <srcfileset>
or <srcfilelist>, as well as at least one
<targetfileset> or
<targetfilelist>. The
fileset elements are used when missing files are
not important. When using filelists, on the other
hand, any missing files cause all target files
to be removed.
- 0..n nested
<srcfileset>elements (1.4) All files in this
filesetare compared against all files specified by the<targetfileset>and<targetfilelist>elements.- 0..n nested
<srcfilelist>elements (1.4) All files in this
filelistare compared against all files specified by the<targetfileset>and<targetfilelist>elements.- 0..n nested
<targetfileset>elements (1.4) All files in this
filesetare compared against all files specified by the<srcfileset>and<srcfilelist>elements. If any are older, all are deleted.- 0..n nested
<targetfilelist>elements (1.4) All files in this
filelistare compared against all files specified by the<srcfileset>and<srcfilelist>elements. If any are older, all are deleted.
Example Usage
This example erases all .class files in the
build directory if the Ant buildfile or any one of the
.java files ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access