Class ExpandWar
java.lang.Object
org.apache.catalina.startup.ExpandWar
Expand out a WAR in a Host's appBase.
- Author:
- Craig R. McClanahan, Remy Maucherat, Glenn L. Nielsen
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final StringManagerThe string resources for this package.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanCopy the specified file or directory to the destination.static booleanDelete the specified directory, including all of its contents and subdirectories recursively.static booleanDelete the specified directory, including all of its contents and subdirectories recursively.static booleanDelete the specified directory, including all of its contents and subdirectories recursively.static booleanDelete the specified directory, including all of its contents and subdirectories recursively.static StringExpand the WAR file found at the specified URL into an unpacked directory structure.static voidValidate the WAR file found at the specified URL.
- 
Field Details- 
smThe string resources for this package.
 
- 
- 
Constructor Details- 
ExpandWarpublic ExpandWar()
 
- 
- 
Method Details- 
expandExpand the WAR file found at the specified URL into an unpacked directory structure.- Parameters:
- host- Host war is being installed for
- war- URL of the web application archive to be expanded (must start with "jar:")
- pathname- Context path name for web application
- Returns:
- The absolute path to the expanded directory for the given WAR
- Throws:
- IllegalArgumentException- if this is not a "jar:" URL or if the WAR file is invalid
- IOException- if an input/output error was encountered during expansion
 
- 
validateValidate the WAR file found at the specified URL.- Parameters:
- host- Host war is being installed for
- war- URL of the web application archive to be validated (must start with "jar:")
- pathname- Context path name for web application
- Throws:
- IllegalArgumentException- if this is not a "jar:" URL or if the WAR file is invalid
- IOException- if an input/output error was encountered during validation
 
- 
copy
- 
deleteDelete the specified directory, including all of its contents and subdirectories recursively. Any failure will be logged.- Parameters:
- dir- File object representing the directory to be deleted
- Returns:
- trueif the deletion was successful
 
- 
deleteDelete the specified directory, including all of its contents and subdirectories recursively.- Parameters:
- dir- File object representing the directory to be deleted
- logFailure-- trueif failure to delete the resource should be logged
- Returns:
- trueif the deletion was successful
 
- 
deleteDirDelete the specified directory, including all of its contents and subdirectories recursively. Any failure will be logged.- Parameters:
- dir- File object representing the directory to be deleted
- Returns:
- trueif the deletion was successful
 
- 
deleteDirDelete the specified directory, including all of its contents and subdirectories recursively.- Parameters:
- dir- File object representing the directory to be deleted
- logFailure-- trueif failure to delete the resource should be logged
- Returns:
- trueif the deletion was successful
 
 
-