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


Chapter 2 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.
To Work with Project Libraries at the Command Line
1.
Navigate to BE_HOME/studio/bin/ and open a command prompt.
2.
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 7 provides detailed information about the options.
Specifies the buildLibrary tool for adding, removing, and creating (overwriting as needed) project libraries.
-r: removes the specified project library from the project specified by -p.
-a: adds the specified project library to the specified project.
 

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