@InterfaceAudience.Private @InterfaceStability.Unstable public class RunJar extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
MATCH_ANY
Pattern that matches any string
|
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the RunJar shutdown hook.
|
| Constructor and Description |
|---|
RunJar() |
public static final Pattern MATCH_ANY
public static final int SHUTDOWN_HOOK_PRIORITY
public static void unJar(File jarFile, File toDir) throws IOException
IOExceptionpublic static void unJar(File jarFile, File toDir, Pattern unpackRegex) throws IOException
jarFile - the .jar file to unpacktoDir - the destination directory into which to unpack the jarunpackRegex - the pattern to match jar entries againstIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.