6.6.0.8: Expanding .ear files

The EARExpander expands Ear files into the format desired by the application server runtime, as described in the application installation instructions. EARExpander can also collapse the expanded format back to a normal Ear (.jar or .zip) format.

Invoking the tool

The tool is located in the following directory: product_installation_root/bin/EARExpander.cmd

To view syntax, open a command line and invoke the tool without arguments.

C:\seaa0122.02\bin>EARExpander.cmd IBM WebSphere Application Server, Release 4.0 J2EE
J2EE Application Expansion Tool, Version 1.0
Copyright IBM Corp., 1997-2001
Required Argument Missing:ear Usage: java com.ibm.websphere.install.commands.EARExpander
-ear -expandDir -operation [expansionFlags]

ExpansionFlags indicate whether you want every Jar file expanded, or just the contained .war files within the Ear file. The default is all.

Expanding files

The following example command expands the file my.ear into the c:\tmp\myear directory:


EARExpander -ear my.ear -expandDir c:\tmp\myear -operation expand
Collapsing files

Using the collapse -operation reverses the format to normal.


EARExpander -ear my.ear -expandDir c:\tmp\myear -operation collapse