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

Chapter 4 Sharing Resources with Other Projects : Creating a Design-time Library

Creating a Design-time Library
A design-time library allows you to share resources with other project developers that you have defined in a previous project. This allows you to create shareable resources once, and then allow other project developers to use them in their projects.
For example, the following resources can be part of a design-time library:
A resource in a design-time library can be maintained using a revision control system or placed in a shared directory. If a resource will be shared by many project developers, the resource should be managed in a revision control system where users can sync regularly to get updates. In a smaller environment, resources can be placed in a shared directory and developers can use email to update each other when there is a change.
If a resource changes, it must be reloaded into your project. The best practice is to minimize changes to the resource. It should be built and tested, then updated infrequently.
When you build an enterprise archive file from a project that contains a design-time library, all resources referenced in the library are included in the archive, just as resources in your local project are included.
To Create a Design-time Library
A LibraryBuilder resource is used to build a design-time library. Complete the following steps after you have configured the resources for the design-time library.
1.
In palette mode, this resource is in the General palette.
2.
Drag the LibraryBuilder resource into the design panel.
The LibraryBuilder is displayed in the design panel, and the configuration panel now allows you to supply information about the library.
Figure 29 Adding LibraryBuilder to Project
3.
Under the Configuration tab, provide a name for the LibraryBuilder.
4.
In the File Location field, provide the absolute path and name for the library file. The directory should be shared so it is accessible to other developers.
5.
Click the Resources tab and click the Browse button to select resources to add to the LibraryBuilder. The resulting list can be limited to resources matching a filter term entered in the Filter Name field.
Figure 30 Select Resource
6.
Click Apply.
7.
8.
Adding a Design-time Library to a Project
After you have added a design-time library to your project, you can use the resources defined in it in another project. The resources display in the project view like other resources but they are dimmed because they cannot be modified.
1.
2.
Click the Design Time Libraries tab.
3.
Click Pick or New.
Click Pick if you have an alias defined for the library. Select the file alias for the design-time library.
Click New and navigate to the location of the design-time library. Provide a name for the library and click Open.
4.
Click Apply.
The following diagram shows the project with an imported design-time library.
Figure 31 Project with Imported Library
Updating a Resource in a Design-time Library
To update a resource in a design-time library, delete the alias to the resource, then add it back.
1.
2.
3.
Click the Design Time Libraries tab.
4.
5.
Click Delete.
6.
Click Apply.
7.
Click Pick.
8.
9.
10.
Click Apply.
Deleting Resources in a Design-time Library
To delete a resource from a design-time library, delete the alias to the resource.
1.
2.
3.
Click the Design Time Libraries tab.
4.
5.
Click Delete.
6.
Click Apply.
Showing or Hiding Design-time Libraries
You can hide the design-time libraries that you have added to a project. When you hide the design-time libraries, the resources in the libraries are not available to your project. If you are using a resource in a design-time library and have hidden the library, when you build an enterprise archive file, that resource will not be part of the archive.
To Toggle Showing and Hiding Design-time Libraries
1.
Click Project > Hide Library Resources.
2.
Click Project > Show Library Resources.

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