copy
Parameters
Table 2. Parameters
| Attribute | Type | Description | Required |
|---|---|---|---|
| file | string | The name of the file to copy. Required unless a fileset is passed in. | true |
| toDir | string | The destination directory to copy to. | true |
| toFile | string | The name of the destination file. If blank, will use the original file's name. Ignored if a fileset is used. | false |
| overwrite | string | If true, will overwrite the file if it already exists. | false |
| if | bool | If true, the task will be executed, otherwise it will be skipped. The default is true. | False |
| unless | bool | The opposite of if. If false, the task will be executed, otherwise it will be skipped. The default is false. | False |