# <concat>

[This is preliminary documentation and subject to change.]

A task that concatenates a set of files. Loosely based on Ant's Concat task.

This task takes a set of input files in a fileset and concatenates them into a single file. You can either replace the output file, or append to it by using the append attribute.

The order the files are concatenated in is not especified.

### Parameters

Attribute | Type | Description | Required
--- | --- | --- | ---
destfile | file | Name of the destination file. | True
append | bool | Specifies whether to append to the destination file. The default is false. | False
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False
unless | bool | Opposite of `if`. If false then the task will be executed; otherwise, skipped. The default is false. | False
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False

### Nested Elements:

#### <fileset>

Set of files to use as input.

#### </fileset>

### Examples

-     <concat destfile="${outputdir}\Full.txt" append="true">
          <fileset>
              <include name="${outputdir}\Test-*.txt" />
          </fileset>
      </concat>

### Requirements

Assembly: NAnt.Contrib.Tasks (0.93.5002.0)