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. For more information about where to run this command, see the topic on using command tools.
EarExpander -ear earName -operationDir dirName -operation <expand | collapse> [-expansionFlags <all|war>]
The following options are available for the EARExpander command:
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
EARExpander.sh -ear /WebSphere/AppServer/installableApps/DefaultApplication.ear -operationDir /MyApps -operation expand -expansionFlags war EARExpander.sh -ear /backup/DefaultApplication.ear -operationDir /MyAppsDefaultApplication.ear -operation collapse
Return code | Description |
---|---|
-1 | A syntax error exists. |
0 | The command ran successfully. |
1 | An error occurred. |
2 | An exception occurred. |