EAF 7.6 Implementation

org.enhydra.server.util
Class UnpackWar

java.lang.Object
  extended by org.enhydra.server.util.UnpackWar

public class UnpackWar
extends java.lang.Object


Constructor Summary
UnpackWar()
          If this constructor is used must call setWar() and setDestDir() methods.
UnpackWar(java.lang.String warPath, java.lang.String destDirPath)
          Default constructor
 
Method Summary
 void execute()
          Unpack war to destination directory.
static void main(java.lang.String[] args)
           
 void setDestDir(java.io.File d)
          Set the destination directory.
 void setWar(java.io.File s)
          Set the path to War-file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpackWar

public UnpackWar()
If this constructor is used must call setWar() and setDestDir() methods.


UnpackWar

public UnpackWar(java.lang.String warPath,
                 java.lang.String destDirPath)
Default constructor

Parameters:
warPath - path to war file
destDirPath - path to destination directory for unpack files
Method Detail

execute

public void execute()
             throws org.enhydra.server.EnhydraServerException
Unpack war to destination directory.

Throws:
org.enhydra.server.EnhydraServerException

setDestDir

public void setDestDir(java.io.File d)
Set the destination directory. File will be unzipped into the destination directory.

Parameters:
d - Path to the directory.

setWar

public void setWar(java.io.File s)
Set the path to War-file.

Parameters:
s - Path to war-file.

main

public static void main(java.lang.String[] args)

EAF 7.6 Implementation