Class JAR
java.lang.Object
org.eclipse.jetty.toolchain.test.JAR
Basic functions for working with JAR files in test cases.
-
Method Summary
-
Method Details
-
unpack
Unpack JAR file into destination directory.- Parameters:
jarFile- the jar file to unpackdestDir- the destination directory to unpack into- Throws:
IOException- if unable to unpack jar file.
-
close
-
create
Create a JAR file out of the contents of a specific directory (recursively)- Parameters:
srcDir- the source directoryjarFile- the destination jar file to create- Throws:
IOException- if unable to create the jar file, or read the source directory
-