org.objectweb.jonas.web.lib
Class JarTools

java.lang.Object
  extended by org.objectweb.jonas.web.lib.JarTools

public final class JarTools
extends java.lang.Object

This class provides an implementation of tools methods than permit to unpack a jar.

Author:
Ludovic Bert, Florent Benoit

Method Summary
static void unpack(java.lang.String fileName, java.lang.String destDir)
          Unpack the specified jar to the specified directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

unpack

public static void unpack(java.lang.String fileName,
                          java.lang.String destDir)
                   throws JWebContainerServiceException
Unpack the specified jar to the specified directory.

Parameters:
fileName - the name of the archive file to unpack.
destDir - the destination directory of the unpacking.
Throws:
JWebContainerServiceException - if an error occors during the unpacking.