Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.jboss.deployment.preprocessor.install.commands
Class CopyCommand

java.lang.Object
  extended by org.nuxeo.runtime.jboss.deployment.preprocessor.install.commands.CopyCommand
All Implemented Interfaces:
Command

public class CopyCommand
extends Object
implements Command

Author:
Bogdan Stefanescu

Field Summary
protected  Path dst
           
protected  PathFilter filter
           
protected  Path src
           
 
Constructor Summary
CopyCommand(Path src, Path dst)
          Constructor for copy command.
CopyCommand(Path src, Path dst, PathFilter filter)
           
 
Method Summary
 void exec(CommandContext ctx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

protected final Path src

dst

protected final Path dst

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 already
dst - 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)
Method Detail

exec

public void exec(CommandContext ctx)
          throws IOException
Specified by:
exec in interface Command
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.