Depend

The <depend> tag selects files whose last modified date is later than another, equivalent file in another location.

The <depend> tag supports the use of a contained Core mappers element to define the location of the file to be compared against. If no mapper element is specified, the identity type mapper is used.

The <depend> tag is case-sensitive.

<fileset dir="phing-2.4.5/classes" includes="**/*.php">
  <depend targetdir="phing-2.4.6/classes"/>
</fileset>

Table 204.  Attributes for the <depend> selector

Name Description Default Required
targetdir The base directory to look for the files to compare against. The precise location depends on a combination of this attribute and the mapper element, if any. n/a Yes
granularity The number of milliseconds leeway to give before deciding a file is out of date. This is needed because not every file system supports tracking the last modified time to the millisecond level. 0 No