org.gradle.api.file
Interface CopySourceSpec

All Known Subinterfaces:
CopyAction, CopySpec
All Known Implementing Classes:
Copy

public interface CopySourceSpec

Specifies sources for a file copy


Method Summary
 CopySourceSpec from(java.lang.Object... sourcePaths)
          Specifies source files or directories for a copy.
 CopySourceSpec from(java.lang.Object sourcePath, groovy.lang.Closure c)
          Specifies the source for a copy and creates a child CopySourceSpec.
 

Method Detail

from

CopySourceSpec from(java.lang.Object... sourcePaths)
Specifies source files or directories for a copy. The toString() method of each sourcePath is used to get a path. The paths are evaluated like Project.file() . Relative paths will be evaluated relative to the project directory.

Parameters:
sourcePaths - Paths to source directories for the copy

from

CopySourceSpec from(java.lang.Object sourcePath,
                    groovy.lang.Closure c)
Specifies the source for a copy and creates a child CopySourceSpec. SourcePath.toString is used as the path. The source is set on the child CopySourceSpec, not on this one. This may be a path to a single file to copy or to a directory. If the path is to a directory, then the contents of the directory will be copied. The paths are evaluated like Project.file() .

Parameters:
sourcePath - Path to source for the copy
c - closure for configuring the child CopySourceSpec