org.jcoderz.commons.util
Class JarUtils

java.lang.Object
  extended by org.jcoderz.commons.util.JarUtils

public final class JarUtils
extends Object

Jar Utility class.

Author:
Michael Griffel, Andreas Mandel

Method Summary
static void createJarArchive(File baseDir, File archive)
          Creates a jar archive from the directory.
static void extractJarArchive(File baseDir, File archive)
          Extract a jar archive into the base directory baseDir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractJarArchive

public static void extractJarArchive(File baseDir,
                                     File archive)
                              throws IOException
Extract a jar archive into the base directory baseDir.

Parameters:
baseDir - the root directory where the archive is extracted to.
archive - jar file.
Throws:
IOException - in case of an I/O error.

createJarArchive

public static void createJarArchive(File baseDir,
                                    File archive)
                             throws IOException
Creates a jar archive from the directory.

Parameters:
baseDir - for the jar archive.
archive - the jar file.
Throws:
IOException - in case of an I/O error.


Copyright 2007 The jCoderZ Project.