Specifies sources for a file copy.
Type | Name and description |
---|---|
CopySourceSpec |
from(Object... sourcePaths) Specifies source files or directories for a copy. |
CopySourceSpec |
from(Object sourcePath, Closure configureClosure) Specifies the source files or directories for a copy and creates a child CopySourceSpec . |
Specifies source files or directories for a copy. The given paths are evaluated as per Project.files.
sourcePaths
- Paths to source files for the copy Specifies the source files or directories for a copy and creates a child CopySourceSpec
. The given source
path is evaluated as per Project.files .
sourcePath
- Path to source for the copyconfigureClosure
- closure for configuring the child CopySourceSpec