B.29 ReflexiveTask
Prev | Appendix B. Core tasks | Next

## B.29 ReflexiveTask

The `ReflexiveTask` performs operations on files. It is essentially a convenient way to transform (using filter chains) files without copying them.

Table B.30: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`file` | `String` | A single file to be processed. | n/a | Yes (unless <fileset> provided)

### B.29.1 Examples

    <reflexive>
      <fileset dir=".">
        <include pattern="*.html">
      </fileset>
      <filterchain>
        <replaceregexp>
          <regexp pattern="\r(\n)" replace="\1"/>
        </replaceregexp>
      </filterchain>
    </reflexive>

### B.29.2 Supported Nested Tags:

- `fileset`

- `filterchain`

Prev | Up | Next
B.28 PropertyPromptTask | Home | B.30 ResolvePathTask