Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 7 Building and Deploying EAR Files at the Command Line : Building an EAR File with Studio Tools Utility

Building an EAR File with Studio Tools Utility
You can build an EAR file with the Studio Tools command-line utility. The buildear operation within the studio-tools utility is useful for automation purposes, for example, in testing environments.
By default, the EAR files are built in memory. The compiler does not use the file system during code generation. Instead, the Studio JVM is used to load all the Java classes and resources into memory until the build process is completed. You can choose to use the file-system based compiler to build EAR files by setting the appropriate options.
Before you build an EAR file during hot deployment of the new concept and concept properties, make sure to add the following property in the studio-tools.tra file:
java.property.com.tibco.be.hotdeploy.concept=true
To Build an EAR File at the Command Line
1.
Navigate to BE_HOME/studio/bin/ and open a command prompt.
2.
studio-tools -core buildEar [-h] [-x] [-lc] [-o outputEarFile>] -p studioProjectDir [-pl projectLibrariesPath] [-cp extendedClasspath]
For example:
studio-tools -core buildEar -o c:\FD.ear -p D:\Workspace\FraudDetection
Table 29, TIBCO BusinessEvents Studio Tools Options for Building an EAR File, provides detailed information about the options.
Within the core category of operations, specifies the buildear operation for building EAR files.
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.
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved