Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Examples of Creating a Project Library

Example 1
The following command creates a project library using the specified project’s contents:

    studio-tools -core 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 -core buildLibrary -p C:\workspace\MyProj -x -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 of 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 -core buildLibrary -p C:\workspace\MyProj -a -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 -core buildLibrary -p C:\workspace\MyProj -r -n C:\test\myproj.projlib

The following table provides detailed information about the options.

TIBCO BusinessEvents Studio Tools Options for Working with Project Libraries
Option | Description
--- | ---
    -core buildLibrary
| Specifies the `buildLibrary` tool for adding, removing, and creating (overwriting as needed) project libraries.
    -h
| Optional. Displays help.
    -p
| File path to the TIBCO BusinessEvents Studio project. Resources from this project are used to create the project library. This filepath is also used to identify the project to which you want to add a project library.
    [-r | -a]
| Use one of these arguments as needed. `-r`: removes the specified project library from the project specified by `-p`. `-a`: adds the specified project library to the specified project.
    -x
| Optional. Overwrites any existing project library at the location specified by -n.
    -n
| The absolute path of the project library to be created or added or removed.
    -f
| Optional. A comma-separated list of resources to include in the project library, using a path relative to the `projectDir`. If not specified all resources of the specified project are used.

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.