Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components
Close Print View
Deploying: UNIX Platform Procedures
 

Classic Java CAPS

Deploying Java CAPS Projects

Creating a Deployment Profile

To create a Deployment Profile

Naming the Application File

Automapping

Mapping Variables

Version Control

Creating Snapshots

Retrieving Snapshots

Building an Application File

Building an Application File From the Command Line

Windows Platform Procedures

UNIX Platform Procedures

Deploying Application Files from the NetBeans IDE

To Deploy an Application File from the NetBeans IDE

Deploying Application Files from Enterprise Manager

Adding the Application Server Domain to Enterprise Manager

Deploying the Application File

Deploying Application Files from the Admin Console

To Deploy an Application File from the Admin Console

Deploying Application Files from the Command Line

Deploying from the asadmin Utility

Deploying from the asant Utility

Deploying Master Indexes (Repository)

Java EE Based Components

Deploying JMSJCA on WebLogic

UNIX Platform Procedures

Note - The Export command works for ksh and bash. For csh, use setenv instead.

To build an application file based on a property file only (AIX/Linux/MacOS/Solaris)
  1. At the command prompt, run the commands:
    Export ANT_HOME=path
    Export JAVA_HOME=path
    dos2unix ant ant
    dos2unix build.xml build.xml
    dos2unix build.properties build.properties
  2. Locate the file build.properties in your commandlinecodegen directory.
  3. Open the file using a text editor. The contents are as follows:
    commandline.rep.url=http://host:port/repositoryname
    commandline.rep.user=
    commandline.rep.pass=
    commandline.rep.dir=localrepository
    commandline.rep.projectName=
    commandline.rep.projectDeployName=
    commandline.rep.projectDeploymentTag=
    commandline.rep.projectBranchName=
  4. Fill in the property values as described in Table 1 (optional properties may be left blank).
  5. Run commandline codegen by issuing the following command from the command-line prompt in your commandlinecodegen directory:
    sh ant -propertyfile build.properties
To build an application file by passing parameters in the command line only (AIX/Linux/MacOS/Solaris)
  1. At the command prompt, run the commands:

    At the command prompt, run the commands:

    Export ANT_HOME=path
    Export JAVA_HOME=path
    dos2unix ant ant
    dos2unix build.xml build.xml
    dos2unix build.properties build.properties
  2. Run commandline codegen by issuing the following command from the command prompt in your commandlinecodegen directory (see Table 1):
    sh ant "-D{propertyname1}={propertyvalue1}" "-D{propertyname2}=
    {propertyvalue2}" … "-D{propertynameN}={propertyvalueN}"

    Note - When using the command-line properties method, you must specify values for all required properties. You also may specify values for any optional properties as is appropriate.

To build an application file based on both a property file and by passing parameters in the command line (AIX/Linux/MacOS/Solaris)
  1. At the command prompt, run the commands:
    Export ANT_HOME=path
    Export JAVA_HOME=path
    dos2unix ant ant
    dos2unix build.xml build.xml
    dos2unix build.properties build.properties
  2. Locate the file build.properties in your commandlinecodegen directory.
  3. Open the file using a text editor such as Notepad. The contents are as follows:
    commandline.rep.url=http://host:port/repositoryname
    commandline.rep.user=
    commandline.rep.pass=
    commandline.rep.dir=localrepository
    commandline.rep.projectName=
    commandline.rep.projectDeployName=
    commandline.rep.projectDeploymentTag=
    commandline.rep.projectBranchName=
  4. Fill in the property values as described in Table 1.
  5. Run commandline codegen by issuing the following command from the command-line prompt in your commandlinecodegen directory:
    sh ant -propertyfile build.properties "-D{propertyname1}={propertyvalue1}"
     "-D{propertyname2}={propertyvalue2}" … "-D{propertynameN}={propertyvalueN}"

    When using a combination of a property file and command-line properties, the command-line properties override those specified in the property file. You need to list only those properties that you want to override.