diff --git a/docs/manual/CoreTypes/selectors.html b/docs/manual/CoreTypes/selectors.html index 5fa1671c0..501834e64 100755 --- a/docs/manual/CoreTypes/selectors.html +++ b/docs/manual/CoreTypes/selectors.html @@ -49,6 +49,8 @@ elsewhere
Selects all files in the base directory and one directory below that.
+ +The <different>
tag selects files
+ who are deemed to be 'different' from another, equivalent file in
+ another location. The rules for determining difference between two
+ files are as follows:
+
+
+ The <different>
tag supports the use of a
+ contained <mapper>
element
+ to define the location of the file to be compared against. If no
+ <mapper>
element is specified, the
+ identity
type mapper is used.
Attribute | +Description | +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.
+ |
+ 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. Default is 0 milliseconds, or 2 seconds on DOS systems. + | +No | +
ignoreFileTimes | +Whether to use file times in the comparison or not. + Default is true. + | +No | +
Here is an example of how to use the Different Selector:
+ ++ ++<fileset dir="${ant.1.5}/src/main" includes="**/*.java"> + <different targetdir="${ant.1.4.1}/src/main" + ignoreFileTimes="true"/> +</fileset> +
Compares all the Java source files between the 1.4.1 and the 1.5 release + and selects those who are different, disregarding file times. +