org.eclipse.jetty.toolchain.test
Class JAR
java.lang.Object
org.eclipse.jetty.toolchain.test.JAR
public final class JAR
- extends Object
Basic functions for working with JAR files in test cases.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unpack
public static void unpack(File jarFile,
File destDir)
throws IOException
- Unpack JAR file into destination directory.
Note: Mostly used by JettyDistro.unpackConfig(String)
- Parameters:
jarFile
- the jar file to unpackdestDir
- the destination directory to unpack into
- Throws:
IOException
- if unable to unpack jar file.
close
public static void close(JarFile jar)
create
public static void create(File srcDir,
File jarFile)
throws IOException
- Throws:
IOException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.