TIBCO BusinessEvents Studio Tools Utility : Working With Project Libraries at the Command Line

Working With Project Libraries at the Command Line
See Working with Project Libraries for an introduction to project libraries and procedures for working with them in TIBCO BusinessEvents Studio.
This section explains how to use a command-line utility to do the following:
Create a project library (and optionally overwrite any existing library at the same location with the same name). This action creates the .projlib file. The corresponding action in TIBCO BusinessEvents Studio is exporting a project library.
Add an existing project library to a TIBCO BusinessEvents Studio project. The corresponding action in TIBCO BusinessEvents Studio is importing a project library (or adding it to the build path property page).
Remove an existing project library from a TIBCO BusinessEvents Studio project. The corresponding TIBCO BusinessEvents Studio action is removing the library from the Build Path property page.
To Work with Project Libraries at the Command Line
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. Arguments for creating a project library are shown separately for clarity:
To create a project library:
studio-tools -op buildLibrary [-h] -p studioProjDir [-f resources] [-x] -n projectLib
To add or remove an existing project directory in a TIBCO BusinessEvents Studio project:
studio-tools -op buildLibrary [-h] -p studioProjDir [-a] [-r] -n projectLib
Examples for Creating a Project Library
Example 1  The following command creates a project library using the specified project’s contents:
studio-tools -op buildLibrary -p C:\workspace\MyProj -n C:\test\myproj.projlib
 
Example 2  The following command creates a project library at the location specified, and overwrites any project library already at that location. From the specified project, the project library uses only the resources specified in the -f argument: the Concepts folder, the MyRule.rule and all dependent resources referred to by these resources.
studio-tools -op buildLibrary -x -p C:\workspace\MyProj -n C:\test\myproj.projlib -f Concepts,Rules\MyRule.rule
Examples for Adding and Removing a Project Library
When a project library exists, built either using TIBCO BusinessEvents Studio or using the command-line options shown in Examples for Creating a Project Library, you can use the buildLibrary operation to add a project library to or remove a project library from a TIBCO BusinessEvents Studio project.
Example 3  The following command adds the myproj.projlib project library to the TIBCO BusinessEvents Studio project at C:\workspace\MyProj.
studio-tools -op buildLibrary -a -p C:\workspace\MyProj -n C:\test\myproj.projlib
Example 4  The following example removes the myproj.projlib project library from the TIBCO BusinessEvents Studio project at C:\workspace\MyProj.
studio-tools -op buildLibrary -r -p C:\workspace\MyProj -n C:\test\myproj.projlib
Table 8 provides detailed information about the options.
Specifies the buildLibrary tool for adding, removing, and creating (overwriting as needed) project libraries.
File path to the TIBCO BusinessEvents Studio project. Resources from this project are used to create the project library.
-r: removes the specified project library from the project specified by -p.
-a: adds the specified project library to the specified project.
Optional. A comma-separated list of resources to include in the project library, using a path relative to the projectDir.