1.14. Element `copy`
Prev | 1. Reference | Next

### 1.14. Element `copy`

    <copy
      files = Glob pattern
      to = Path
      recurse = boolean : false
      quiet = boolean : false
    />

Copies files and directories specified by attribute `files` to the file or directory specified by attribute `to`.

Has no effect is specified wildcard does not match any file.

If specified wildcard matches several files or directories, the destination must be an existing directory.

Directories will not be copied unless attribute `recurse` is specified with value `true`.

Attribute `quiet` can be used to suppress the error message when one of the specified files does not exist or when one of the specified files is a directory (and attribute `recurse` is different from `true`).

Prev | Up | Next
1.13. Element `delete` | Home | 1.15. Element `zip`