| Modifier and Type | Class and Description |
|---|---|
static class |
CopyStep.DirectoryMode
When copying a directory, this specifies whether only the contents of the directory should be
copied, or if the directory itself should be included.
|
| Modifier and Type | Method and Description |
|---|---|
StepExecutionResult |
execute(ExecutionContext context) |
static CopyStep |
forDirectory(ProjectFilesystem filesystem,
Path source,
Path destination,
CopyStep.DirectoryMode directoryMode)
Creates a CopyStep which recursively copies a directory from 'source' to 'destination'.
|
static CopyStep |
forFile(ProjectFilesystem filesystem,
Path source,
Path destination)
Creates a CopyStep which copies a single file from 'source' to 'destination'.
|
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
boolean |
isRecursive() |
public static CopyStep forFile(ProjectFilesystem filesystem, Path source, Path destination)
public static CopyStep forDirectory(ProjectFilesystem filesystem, Path source, Path destination, CopyStep.DirectoryMode directoryMode)
CopyStep.DirectoryMode for options to control the copy.public String getShortName()
getShortName in interface Steppublic String getDescription(ExecutionContext context)
getDescription in interface Steppublic boolean isRecursive()
public StepExecutionResult execute(ExecutionContext context) throws IOException
execute in interface StepIOException