EAR expander
Sometimes during application debugging or automated application deployment, you may need to enquire about the contents of an Enterprise Archive (EAR) file. An EAR file is made up of one or more WAR files (web applications), one or more Enterprise JavaBeans (EJBs), and there can be shared JAR files as well. Also, within each WAR file, there may be JAR files as well. The EARExpander.sh
utility allows all artifacts to be fully decompressed much as expanding a TAR file.
Usage syntax:
EARExpander -ear (name of the input EAR file for the expand operation or name of the output EAR file for the collapse operation) -operationDir (directory to which the EAR file is expanded or directory from which the EAR file is collapsed) -operation (expand | collapse) [-expansionFlags (all | war)] [-verbose]
To demonstrate the utility, we will expand the HRListerEAR.ear
file we installed in Chapter 3, Deploying your Applications. Ensure that you have uploaded the HRListerEAR.ear
file to a new folder called...