Nuxeo Enterprise Platform 5.3

org.nuxeo.runtime.deployment.preprocessor.install.commands
Class ZipCommand

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

public class ZipCommand
extends Object
implements Command

Zip the content of a directory.

A prefix may be specified.

Author:
Bogdan Stefanescu

Field Summary
protected  Path dst
           
protected  PathFilter filter
           
protected  String prefix
           
protected  Path src
           
 
Constructor Summary
ZipCommand(Path src, Path dst)
           
ZipCommand(Path src, Path dst, String prefix)
           
ZipCommand(Path src, Path dst, String prefix, PathFilter filter)
           
 
Method Summary
 void exec(CommandContext ctx)
           
 String toString()
           
 String toString(CommandContext ctx)
           
 
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

prefix

protected final String prefix
Constructor Detail

ZipCommand

public ZipCommand(Path src,
                  Path dst)

ZipCommand

public ZipCommand(Path src,
                  Path dst,
                  String prefix)

ZipCommand

public ZipCommand(Path src,
                  Path dst,
                  String prefix,
                  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

toString

public String toString(CommandContext ctx)
Specified by:
toString in interface Command

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.