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 filelist
s, 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
fileset
are compared against all files specified by the<targetfileset>
and<targetfilelist>
elements.- 0..n nested
<srcfilelist>
elements (1.4) All files in this
filelist
are compared against all files specified by the<targetfileset>
and<targetfilelist>
elements.- 0..n nested
<targetfileset>
elements (1.4) All files in this
fileset
are 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
filelist
are 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 ...
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.