public final class JarUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
makeFullJar(File directory,
File jarFile)
Creates a jar from a directory contents (not the directory itself).
|
static File |
makeJar(File directory,
File jarFile)
Creates a jar from a directory.
|
public static File makeJar(File directory, File jarFile) throws IOException
directory - the jar's base directoryjarFile - the file to create. If it is null the jar's
name will be the directory name followed by .jar (the file
is created in the same parent directory as the base directory)IOException - the file already existspublic static File makeFullJar(File directory, File jarFile) throws IOException
directory - the jar's base directoryjarFile - jar file to create. If null the jar is
created with the same parent as the directory and it's name is the
directory name followed by .jarIOException - file already existsCopyright © 2015. All rights reserved.