Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# 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/`.
2. Open the `studio-tools` utility.
3. On the command prompt, run the following command with the format (all on one line):

       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 buildEar | 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 a 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 the 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 do not have write permission to the TIBCO BusinessEvents installation on the system.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.