Building an EAR File at the Command Line

Procedure

  1. Navigate to BE_HOME/studio/bin/ and open a command prompt.
  2. Execute a command with the following format (all on one line) at a command prompt:
    studio-tools -core buildEar [-h] [-x] [-lc] [-jc] [-o outputEarFile>] -p studioProjectDir [-pl projectLibrariesFilePath] [-cp extendedClasspath]

    For example:

    studio-tools -core buildEar -o c:\FD.ear -p D:\Workspace\FraudDetection

    TIBCO BusinessEvents Studio Tools Options for Building an EAR File, provides detailed information about the options.

    TIBCO BusinessEvents Studio Tools Options for Building an EAR File
    Option Description
    -core buildEar Within the core category of operations, specifies the buildear operation for building EAR files.
    -h Optional. Displays help.
    -x Optional. Overwrites the specified output file if it exists.
    -lc Optional. Specifies that the file-based legacy compiler must be used to build the EAR file. By default, the EAR files are built-in memory.
    -jc Optional. Includes the JAR files specified in the Java classpath while building the EAR file.
    -o Optional. Specifies the filename for the output EAR file. If not specified the EAR file is the same as the final (leaf) directory name in the projectDir path.
    -p Absolute path to the TIBCO BusinessEvents Studio project directory. The EAR file is built using this project.
    -pl Optional. Specifies list of project library file paths to be used, separated by a path separator.
    -cp Optional. Specifies the extended classpath to be used.

Result

Note: When building an EAR file in memory for a large project, the JVM may run out of PermGenSpace and/or heap space. In such cases, edit the BE-HOME/studio/eclipse/studio.ini and BE-HOME/studio/bin/studio-tools.tra file to set appropriate values for the JVM settings. By default the heap size is set to -XX:MaxPermSize=256m.