Pages

Friday, November 5, 2010

How to expand or collapse EAR on Websphere Application Server

EARExpander

This command is used to either expand the Enterprise Archive in to a file system or collapse the application files into a single EAR file.

The syntax is

EarExpander -ear earName -operationDir dirName –operation <expand | collapse> 
[-expansionFlags <all|war>]

Where
-       earName specifies the source EAR file name if it is a expand operation or output EAR file name for collapse operation
-       operationDir specifies the directory where EAR needs to be expanded or a directory from where EAR needs to be collapsed in to a file.
-       expand or collapse option to either expand an EAR or collapse a directory to a EAR
-       an optional expansionFlags
o   all - expand war’s, rar’s.
o   war – to expand only .war

No comments:

Post a Comment