# from

abstract fun from(@Nullable sourcePaths: Array<@Nullable Any>): CopySourceSpec(source)

Specifies source files or directories for a copy. The given paths are evaluated as per files.

#### Since

0.8

#### Parameters

sourcePaths

Paths to source files for the copy

abstract fun from(sourcePath: Any, @DelegatesTo(value = CopySpec::class) configureClosure: Closure): CopySourceSpec(source)

Specifies the source files or directories for a copy and creates a child `CopySourceSpec`. The given source path is evaluated as per files .

#### Since

0.8

#### Parameters

sourcePath

Path to source for the copy

configureClosure

closure for configuring the child CopySourceSpec

abstract fun from(sourcePath: Any, configureAction: Action<in CopySpec>): CopySourceSpec(source)

Specifies the source files or directories for a copy and creates a child `CopySpec`. The given source path is evaluated as per files .

#### Since

3.0

#### Parameters

sourcePath

Path to source for the copy

configureAction

action for configuring the child CopySpec