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 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 like 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 2. Ensure that you have uploaded the HRListerEAR.ear
file to a new folder called /tmp/EARExpander
folder on your Linux sever...