Class CopyCommand
- java.lang.Object
-
- org.nuxeo.runtime.deployment.preprocessor.install.commands.CopyCommand
-
- All Implemented Interfaces:
Command
public class CopyCommand extends Object implements Command
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description CopyCommand(Path src, Path dst)
Constructor for copy command.CopyCommand(Path src, Path dst, PathFilter filter)
CopyCommand(Path src, Path dst, Path prefix, PathFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec(CommandContext ctx)
String
toString()
String
toString(CommandContext ctx)
-
-
-
Field Detail
-
src
protected final Path src
-
dst
protected final Path dst
-
prefix
protected final Path prefix
-
filter
protected final PathFilter filter
-
-
Constructor Detail
-
CopyCommand
public CopyCommand(Path src, Path dst)
Constructor for copy command.- Parameters:
src
- the path relative to the root container. The path will be made absolute if not alreadydst
- the path relative to teh root container of the destination. If it is ending with a slash '/' the destination path is treated as a directory
-
CopyCommand
public CopyCommand(Path src, Path dst, PathFilter filter)
-
CopyCommand
public CopyCommand(Path src, Path dst, Path prefix, PathFilter filter)
-
-
Method Detail
-
exec
public void exec(CommandContext ctx) throws IOException
- Specified by:
exec
in interfaceCommand
- Throws:
IOException
-
toString
public String toString(CommandContext ctx)
-
-