concept selector in category ant

This is an excerpt from Manning's book Ant in Action.
Filenames are a common way of selecting files for operations, but not always enough. Sometimes you want to delete out-of-date files or upload only changed files to a remote site. What if you want to delete files, leaving directories in their place? You can do all these things by refining the fileset with selectors. Each selector is a test that’s applied to each file in the fileset (or other selector container). It narrows down the selection of files in the fileset. The selectors are listed in table 3.4.
Table 3.4. Ant’s built-in selectors. Any fileset can be restricted by these selectors to choose only those files that match the specific tests.
Selector
Description
<filename> Works like a patternset <include> or <exclude> element to match files based on a pattern <depth> Selects files based on a directory depth range <size> Selects files that are less, equal to, or more than a specified size <date> Selects files (and optionally directories) that have been last modified before, after, or on a specified date <present> Selects files if they exist in another directory tree <depend> Selects files that are newer than corresponding ones in another directory tree <contains> Selects files that contain a string <containsregexp> Select files that contain a regular expression-described string <different> Selects files that are different from those in another directory <type> Selects by type of file or directory <modified> Calculates (and caches) checksums for files; selects those that have changed <signedselector> Selects signed JAR files, optionally naming the signatory <scriptselector> Inline script language containing a selection rule These selectors can be combined inside selector containers to provide grouping and logic. The containers are <and>, <or>, <not>, <none>, <selector>, and <majority>. Containers may be nested inside containers, enabling complex selection logic. Rather than detailing every available selector, container, and their options, we refer you to Ant’s documentation for this information. We will, however, provide a couple of examples showing how selectors work, and we’ll use them in the book where needed.
Writing custom resources, filters, selectors, and mappers
There are three more Ant datatypes we want to look at: selectors, mappers, and filters. Let’s start with selectors.