public class ExpandWar
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm
The string resources for this package.
|
Constructor and Description |
---|
ExpandWar() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copy(java.io.File src,
java.io.File dest)
Copy the specified file or directory to the destination.
|
static boolean |
delete(java.io.File dir)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static boolean |
delete(java.io.File dir,
boolean logFailure)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static boolean |
deleteDir(java.io.File dir)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static boolean |
deleteDir(java.io.File dir,
boolean logFailure)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static java.lang.String |
expand(Host host,
java.net.URL war,
java.lang.String pathname)
Expand the WAR file found at the specified URL into an unpacked
directory structure.
|
static void |
validate(Host host,
java.net.URL war,
java.lang.String pathname)
Validate the WAR file found at the specified URL.
|
protected static final StringManager sm
public static java.lang.String expand(Host host, java.net.URL war, java.lang.String pathname) throws java.io.IOException
host
- Host war is being installed forwar
- URL of the web application archive to be expanded
(must start with "jar:")pathname
- Context path name for web applicationjava.lang.IllegalArgumentException
- if this is not a "jar:" URL or if the
WAR file is invalidjava.io.IOException
- if an input/output error was encountered
during expansionpublic static void validate(Host host, java.net.URL war, java.lang.String pathname) throws java.io.IOException
host
- Host war is being installed forwar
- URL of the web application archive to be validated
(must start with "jar:")pathname
- Context path name for web applicationjava.lang.IllegalArgumentException
- if this is not a "jar:" URL or if the
WAR file is invalidjava.io.IOException
- if an input/output error was encountered
during validationpublic static boolean copy(java.io.File src, java.io.File dest)
src
- File object representing the sourcedest
- File object representing the destinationpublic static boolean delete(java.io.File dir)
dir
- File object representing the directory to be deletedpublic static boolean delete(java.io.File dir, boolean logFailure)
dir
- File object representing the directory to be deletedlogFailure
- true
if failure to delete the resource
should be loggedpublic static boolean deleteDir(java.io.File dir)
dir
- File object representing the directory to be deletedpublic static boolean deleteDir(java.io.File dir, boolean logFailure)
dir
- File object representing the directory to be deletedlogFailure
- true
if failure to delete the resource
should be loggedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.