Building an EAR File from the CLI

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.
    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] [-v] [-noBuild] [-showWarnings] [-o <outputArchiveFile>] -p <projectDir> -pl<project lib path><path separator><project lib path> -cp<extended classpath> -cd<temporary code gen/compilation directory>

    For example:

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

    The following table provides detailed information about the options.

    TIBCO BusinessEvents Studio Tools Options for Building an EAR File
    Option Description
    -core buildEarSpecifies 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.
    -pAbsolute 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.
    - v(Optional) Performs validation checks to ensure that all the resource requirements are met. For example, it checks if the required fields are completed, names are valid, the syntax in rules is correct and no unknown functions are called.

    For more information, see Validating a Project or Project Resource

    -showWarnings(Optional) Displays warnings found during the validation process.

    Default: False

    - noBuild(Optional) Use this option along with the validate option (-v) to validate a project without building an EAR for it.
    -cd(Optional) Absolute path to a temporary code generation directory. You can use this option while building an EAR for a project when you don't have write permisssions to the TIBCO BusinessEvents installation on the system.