Configuring ClearCase LT

zhaozj2021-02-17  53

Download this article Word document

Configuring ClearCase LT

Huo Chengping

Rational's ClearCase is a SCM (Software Configuration Manage) tool for large teams, which is more complex than Visual Source Safe. Thus, before the first use of ClearCase, some learning and trials will be implemented. After familiarity, it is officially deployed and used. This paper briefly introduces the installation, configuration, and basic use of ClearCase LT.

Revise

2003-9-13 1st Edition.

2003-11-2.

Precautions

1. All operations described herein are running on Simplified Chinese Windows 2000 Professional SP4, ClearCase LT Server Release 2002.05 and Visual Studio 6.0.

2. ClearCase LT points Server and Client two installation versions, Server contains the functionality of the client.

3. ClearCase LT requires IE5.01 SP2, if your IE version is not enough, first upgrade.

Operation process

1. Install ClearCase LT Serve and run Setup Wizard.

2. Create a VOB and components.

3. Create a ClearCase project.

4. Create integrated stream.

5. Create an integrated view.

6. Create a development stream and view.

7. Use ClearCase under VC.

Install ClearCase LT Server and run Setup Wizard

Simple installation is simple. With the correct license file, execute Setup, press the prompt step by step to execute. Setup Wizard will be automatically executed after installation. For ClearCase LT Server, this is the only place that can create a storage directory. Setup Wizard will request to enter the following options:

Storage Directory. This is a directory for storing the ClearCase LT Server database. It is recommended to place it in a NTFS partition root directory and named CCStore (including the recommended recommendations about naming is purely personal).

Source Vob name. Setup wizard will help you set a VOB, this parameter is used to specify the name you want. My suggestion does not use the name of the project you existing or will develop, and use cctest. And use it after installation, use it to test and learn ClearCase.

Import Source Files. After creating VOB, Setup Wizard automatically imports your existing code into it. As I don't recommend the name of the project that you want to develop, I don't recommend you to select this option. When you have some understanding of ClearCase and implement ClearCase in a new environment, use this option.

Starting Project name. The components stored in the VOB are valuable wealth that you have accumulated. ClearCase project is just a plan to create, use, and upgrade these components. One project often uses multiple components, and a component is often used before or after multiple items. I suggest you use VOB created by Setup Wizard as a test purpose, so this project is also used to test purposes. It is even used after you use ClearCase for a while. Therefore, it is recommended to use the name cctest_proj.

UNIX Clients. This option is to tell ClearCase whether there is a UNIX machine to access the ClearCase LT Server. Select the correct setting based on your situation.

Create a VOB and components

Execute the CREATE VOB command in the Rational ClearCase LT Server to create a VOB. This command calls up only one step CREATE VOB WIZARD, enters the name, and the two parameters, and press the "Finish" button to create a VOB.

ClearCase LT requires a VOB to each component, so you can name VOB with the name of the component. Here, we create a CCGUI component, the meaning of CCGUI is the GUI section of the application CC. So in this step, simply enter the name "CCGUI" and the "GUI COMPOMENT OF THE Application CC". Some people don't like to enter instructions, but I suggest you enter a simple text in all descriptions that can be entered. Remember, not everyone can see your name, even yourself. This step is not required or you can use the VOB created in the previous step.

Create a ClearCase project.

Execute Project Explorer to call the project management window. Select the Components directory in the left pane, you can see the component CCGUI created in the previous step.

Select the root project Projects on the left pane, then execute the menu command file-> new-> folder. On the right pane, you can see a new folder project and change its name to ccProjects. Big and medium-sized companies often have many projects, and the catalogs are stored in directory, which is easy to find and manage a good practice method. If you think there is only one project now, there is no need. Then I want to suggest you, from the beginning, you should cultivate a good habit.

Then select the node ccProjects you just created in the left pane, execute the menu command, File-> New-> Project. In the calling New Project Wizard, you need to enter the following parameters:

PROJECT. This is the name of the new project. It is currently possible to enter ccrel1, indicating the first release version of the application CC.

Description. This is an instructions for new projects that can enter "First Release of Application CC".

Create a new version of an existing project. This option control is created on an existing project based on an existing project. Of course, I can only choose NO.

In step 3 of New Project Wizard, start to add components to the project. As mentioned above, in ClearCase, a project is a plan for creating, maintained, upgraded for one or more components. So in a ClearCase project, you want to include one or more components. Some components use only non-modifications (such as public libraries) in the project, which requires a read-only attribute when joining into the project. Here, we only need to add to build CCGUI. The specific operation is: Click the "Add ..." button, select the component CCGUI and baseline ccGui_initial, click "OK". Members CCGUI and baseline CCGUI_Initial will appear in the list of components.

In step 4 of New Project Wizard, you will start to define the added components, those who need to create, maintained, or upgrades. Tick ​​in the check box in front of these components. There are several other parameters that can be set this step, please do not modify it, reserve the value of the value. The detailed discussion of them is beyond the scope of this article, and I want to know more, please pay attention to a follow-up article.

The last step selects whether to integrate ClearQuest in the new project. ClearQuest is a change management tool for Rational's production. Whether you are familiar with it, don't use it when you start. When the ClearCase and ClearQuests for a period of time are used, it is combined.

Create an integration view.

Continue the previous project management window. Select the ccRel1_integration under the left window in the project ccrel1, which is the project integration stream that is automatically created in the previous step. Select Menu Command File-> New-> View or context menu, call up the View Creation Wizard. Enter the root directory of the integrated view and simple description text, press the completion to enter the next step. For the root of the integrated view, my suggestion is d: / interface / ccrel1. The D here is the hard disk partition where the main working file is located. In the next Choose Elements to Load window, select CCGUI on the left and join to the right list. Press OK to complete the creation of the integrated view.

Create a development stream and view

With integrated flow and integrated views, each developer also creates its own development stream and view. Execute Rational ClearCase Explorer, select Toolbox-> UCM-> JoIn Project in the left shortcut panel, and the Join Project dialog box appears. Select the item CcRel1 you want to join in the first step. Enter the name and integrated stream of the development stream in the second step, use the default value. The third step selects the development flow parameters and uses the default value. Step 4 Enter the development viewing root directory and short description. For the root of the development view, my suggestion is D: / Projects / CCREL1. The D here is the hard disk partition where the main working file is located. After the development view is created, you will automatically join the project component directory in its directory.

Use Clearcase under VC

First create an empty workspace (Workspace) in the development view directory, then create a corresponding VC project on each item component subdirectory. Other operations with Source Safe, just a number of operations add input activity (Activity) dialog, which is a major feature of ClearCase based on active configuration management.

bibliography

Brian A. White, "Software Configuration Management Strategy and Rational Clearcase", Ukibin Li Jihua Wang Ning translated, ISBN-115-11157-X / TP • 3370, People's Posts and Telecommunications Press.

转载请注明原文地址:https://www.9cbs.com/read-29747.html

New Post(0)