<filter>

The <filter> task enables you to set a filter for any of the tasks that perform file-copying operations through the Project commodity methods. A filter consists of a token and the value that will be substituted wherever it occurs. Note that the token matching is case sensitive.

The <filter> attributes are shown in Table 4.35.

Table 4.35. Table of <filter> Attributes
Attributes (Required) Description
token (if no filtersfile is specified) The token string to be replaced.
value (if filtersfile no specified) The string value that should be substituted for occurrences of the token.
filtersfile (if token and value not specified) The name of the file that contains a list of filters. This file must be formatted as a property file.

Example ...

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.