If you have existing VOBs, you may want to convert them into components so that you can include them in projects. This section describes how to set up a project based on existing VOBs.
Use the VOB Creation Wizard, as described in Creating the Project VOB, to create the PVOB. In Step 3, if you currently use an administrative VOB, select it in the list. ClearCase creates an AdminVOB hyperlink between the PVOB and the administrative VOB. When you create components, they use the existing administrative VOB. If you do not currently use an administrative VOB, select none.
To make a VOB into a component:
In the Project Explorer, select the PVOB. Click Tools > Import VOB. The Import VOB dialog box opens.
In the Available VOBs list, select the VOB that you want to make into a component. Click Add to move the VOB to the VOBs to Import list. You can add more VOBs to the VOBs to Import list. If you change your mind, you can select a VOB in the VOBs to Import list and click Remove to move it back to the Available VOBs list. When you are finished, click Import.
You may want to organize the contents of a VOB into multiple components. To make a directory tree within a VOB into a component, use the cleartool mkcomp command. For example:
cleartool mkcomp -root \myvob\admin_comp admin_comp@\my_pvob
This command creates the admin_comp component in myvob. The admin_comp component contains the admin_comp directory and all its subdirectories and files. The component's root directory must be at or directly below the VOB root directory. If the component's root directory is at the VOB root directory, that VOB cannot store multiple components.
After you convert an existing VOB into a component, to access the directories and files in that component, you must create a baseline from the set of versions identified by a label type. To create the baseline:
If the set of versions that you want to use are not already labeled, use the Apply Label Wizard to make and apply a label type. To start the Apply Label Wizard, click Start > Programs > Rational ClearCase > Apply Label. Alternatively, you can enter clearapplywizard at the command prompt.
In the Project Explorer, select the PVOB. Click Tools > Import Label. Step 1 of the Import Label Wizard appears.
In the Available Components list, select the component that contains the label from which you want to create a baseline. Click Add to move that component to the Selected Components list. If you change your mind, select a component in the Selected Components list and click Remove to move the component back to the Available Components list.
In Step #2, select the label type that you want to import, and enter the name of the baseline that you want to create for the versions identified by that label type. Then select the baseline's promotion level. NOTE: You cannot import a label type from a global label type definition.
Use the New Project Wizard to create the project as described in Creating the Project.
Create an integration view as described in Creating an Integration View.
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |