public final class JarUtils extends Object
Constructor and Description |
---|
JarUtils() |
Modifier and Type | Method and Description |
---|---|
protected void |
createJarFromDirectory(File root,
File directory,
JarOutputStream jarStream)
Create a jar file from a particular directory.
|
File |
createJarFromDirectory(String directory,
File outputJar)
Create a JAR file from a directory, recursing through children.
|
protected void createJarFromDirectory(File root, File directory, JarOutputStream jarStream) throws IOException
root
- in the root directorydirectory
- in the directory we are addingjarStream
- the jar stream to be added toIOException
- on IOExceptionpublic File createJarFromDirectory(String directory, File outputJar) throws IOException
directory
- in directory sourceoutputJar
- in file to output the jar data toIOException
- when there is an I/O exceptionCopyright © 2004-2013 Codehaus. All Rights Reserved.