Project Tasks : Creating and Using Project Libraries

Creating and Using Project Libraries
Project libraries (design-time libraries) are archives that enable you to create project resources once, and share them with other projects.
Project libraries can contain any resources from a BusinessEvents Studio project. For example, a project library might contain some concepts that are standard across projects (such as Person), so that multiple projects do not need to redefine these concepts.
Project libraries have the file extension .projlib. BusinessEvents Studio includes the following features to allow the refactoring of project resources into project libraries.
Avoid Conflicting Elements  Ensure that the project library does not use elements already in use in the local project. If elements in an imported project library conflict with the local project elements, those in the local project have priority. The project library element is ignored in this case for build purposes and is not included in the ear.
Creating a Project Library
To create a project library you export selected resources to an archive.
To Create a Project Library
1.
2.
In the Select dialog, select TIBCO BusinessEvents > Project Library and click Next. You see the Export Studio Project Library dialog.
3.
In the Export Studio Project Library dialog, select the resources you want to export. (If you selected resources in Studio Explorer they are selected automatically.)
The left panel displays folders. The right panel displays resources. Select what to export in any of the following ways:
To reduce the set of selected resources, first select resources then click the Filter Types button. Select one or more resource types, then click OK. The Export Studio Project Library dialog selection is now reduced to only resources of the selected type or types.
4.
Adding and Removing Project Libraries in a BusinessEvents Studio Project
Adding a project library does not physically import the files. Instead a pointer to the files is maintained in the project and the resources appear in BusinessEvents Studio Explorer as if they are in the project. The physical location can be in the project folders or external to them, as long as they are available to the project at design time.
You can add a project library to a project in either of these two ways:
To Include a Project Library (Add it to the Build Path)
1.
2.
In BusinessEvents Studio Explorer, right-click the project name and click Properties (or press Alt-Enter, or select Project > Properties). You see the properties dialog for the project.
3.
In the left panel, select Build Path and then select the Project Libraries tab.
4.
Click Add Library and browse to and select the desired project library (.projlib) file.
5.
Click OK and then save the resource. The project library appears at the root of the project tree as a Project Dependencies node.
To Import a Project Library
1.
2.
In the Import wizard Select dialog, select TIBCO BusinessEvents > Project Library and click Next. You see the Import Project Library dialog.
3.
4.
Select a project from the project tree or type the name in the field above the project tree area. You can only import at the root of a project.
Ignore the New File Name field. It is not used by BusinessEvents.
5.
Click Finish. The project library appears at the root of the project tree as a Project Dependencies node.
To Remove a Project Library
To remove a project library, follow the instructions in To Include a Project Library (Add it to the Build Path), but instead of clicking Add Library, select the project library you want to remove and click Remove Library.