<uptodate>

The <uptodate> task will set a property if a target file (or set of files) is more recent than a set of source files.

In general, <uptodate> is a good task to use to avoid target execution when the files involved are not directly dependent. One such example is to check whether the set of files in an archive has changed since the archive was last compiled.

See Table 4.84 for a full listing of the <uptodate> attributes.

Table 4.84. Table of <uptodate> Attributes
Attributes Description
Required
property The property to set.
srcfile (required unless a nested <srcfiles> element is used) The name of the source file.
targetfile (required unless a nested <mapper> element is used) The name of the target file.
Optional
value The value to ...

Get Ant Developer’s Handbook 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.