Use the EARExpander script to work with applications

The EARExpander script expands an EAR file into a directory to run the application in that EAR file. It also collapses a directory containing application files into a single EAR file. You can type EARExpander with no arguments to learn more about its options. For information on running Qshell scripts, see Configure Qshell to run WebSphere Application Server - Express scripts.

Authority

No special authority is required to run this script.

Usage

To run the script, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the script:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Run the EARExpander script:

    EARExpander -ear earfile -operation expand | collapse 
    -operationDir directory

    where earfile is the name of the EAR file that you want to expand or the name of the EAR file that you want to create and directory is the name of the directory to which the EAR file is expanded or from which the EAR file is created.

Syntax

The syntax of the EARExpander script is:

EARExpander -ear earfile -operation expand | collapse 
  -operationDir directory [ -help | -? ]

Parameters

The parameters of the EARExpander script are:

Examples

EARExpander -ear /home/myProfile/myFile.EAR -operation expand
 -operationDir /home/myProfile/myApps/myApp1

This example expands the file myFile.EAR into the /home/myProfile/myApps/myApp1 directory.

EARExpander -ear /home/myProfile/myNewFile.EAR -operation collapse
 -operationDir /home/myProfile/myApps/myNewApplication

This example creates the file myNewFile.EAR from the contents of the /home/myProfile/myApps/myNewApplication directory.