jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.configurator
Class JarUnpacker

java.lang.Object
  extended byuk.co.weft.configurator.JarUnpacker

public class JarUnpacker
extends java.lang.Object

experimental utility class to understand how to unpack a jar file


Field Summary
 boolean debug
          whether or not to print debugging output
 
Constructor Summary
JarUnpacker()
           
 
Method Summary
static void main(java.lang.String[] args)
          for debugging only, do not use!
 void unpack(java.io.File file, java.io.File directory)
          /** unpack the jar file into the directory specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
whether or not to print debugging output

Constructor Detail

JarUnpacker

public JarUnpacker()
Method Detail

unpack

public void unpack(java.io.File file,
                   java.io.File directory)
            throws java.io.IOException
/** unpack the jar file into the directory specified

Parameters:
file - a file, presumed to be a jar file
directory - a file, presumed to be a writable directory
Throws:
java.io.IOException - if anything goes wrong.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
for debugging only, do not use!

Parameters:
args - two strings, the first the name of a jar file, the second that of a writable directory
Throws:
java.lang.Exception - if anything goes wrong

jacquard 1.12.0 by The Web Engineering Factory and Toolworks