EARExpander command
Use the EARExpander command to expand an enterprise archive file
(EAR) into a directory to run the application in that EAR file. You can collapse
a directory containing application files into a single EAR file. You can type EARExpander with
no arguments to learn more about its options.
Syntax
The command syntax is as follows:
EarExpander -ear earName -operationDir dirName -operation <expand | collapse> [-expansionFlags <all|war>]
Parameters
The following options are available for
the EARExpander command:
- -ear
- Specifies the name of the input EAR file for the expand operation or the
name of the output EAR file for the collapse operation.
- -operationDir
- Specifies the directory where the EAR file is expanded or specifies the
directory from where files are collapsed.
- -operation <expand | collapse>
- The expand value expands an EAR file into a directory structure
required by the WebSphere Application Server run time. The collapse value
creates an EAR file from an expanded directory structure.
- -expansionFlags <all | war>
- (Optional) The all value expands all files from all of the modules.
The war value only expands the files from Web archive file (WAR)
modules.
Usage scenario
The following examples demonstrate
correct syntax:
EARExpander -ear C:\WebSphere\AppServer\installableApps\DefaultApplication.ear
-operationDir C:\MyApps -operation expand -expansionFlags war
EARExpander -ear C:\backup\DefaultApplication.ear
-operationDir C:\MyAppsDefaultApplication.ear -operation collapse
Searchable topic ID:
rxml_earexpander
Last updated: Jun 21, 2007 4:12:58 PM CDT
WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/rxml_earexpander.html