Product | Command Type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Platform |
---|
UNIX |
Windows |
The chproject command modifies one or more UCM projects in the following ways:
Adds one or more modifiable components to a project.
Removes one or more components from the project's modifiable component list.
Moves a project to another folder.
Changes the promotion level required of a baseline before it can be recommended by a stream in the project.
Sets policy for a project.
Enables or disables a project for use with Rational ClearQuest.
For information about changing the project's name, see rename.
Over time, a project's scope can expand, and you may need to add modifiable components to the project. The -amodcomp option allows you to add one or more modifiable components. For the streams in the project to capture the changes in component modifiability, do one of two things:
If the components have a baseline in the stream, regenerate the view attached to the stream by running setcs -stream.
If the components don't yet have a baseline in the stream, add baselines for these components with rebase -baseline.
If you made some components modifiable when you set up a project and later change your mind, the -dmodcomp option allows you to remove one or more components from the project's modifiable component list. A component cannot be removed from the list if any changes have been made to it in the project. Before performing this operation, verify that no development stream has changes to the component. A warning is issued if any of the following is true:
The component or VOB is replicated. Any modification in development streams of replicated VOBs cannot be delivered.
One or more of the project's streams are unavailable.
The component is already unmodifiable.
After you convert the components to read-only, reconfigure the views or streams as needed. See instructions in Adding Modifiable Components.
A project's rebase level is the minimum promotion level a baseline must have in order to be recommended by a stream in the project. For example, if Project A has three promotion levels- REJECTED, TESTED, and RELEASED (in ascending order)-and TESTED is the rebase level, the latest baselines labeled TESTED or RELEASED can be recommended by a stream with chstream -recommended -default. See rebase and setplevel for more information.
You can link or unlink a UCM project to a ClearQuest database with the -crmenable or -ncrmenable options. When you enable ClearQuest for a UCM project that contains UCM activities, then for each UCM activity, a ClearQuest record of type UCMUtilityActivity is created and linked to the activity. This process is called activity migration. If you disable a link to ClearQuest from a UCM project that contains activities, all its activities are unlinked from their ClearQuest records.
The -crmenable and -ncrmenable options display a summary of the number of activities that have been migrated or unlinked.
In MultiSite, you are informed if activities cannot be migrated or linked because they are not mastered in the current UCM project VOB replica. If there are any, they are listed along with a list of replicas from which to run the command again to correct the problem.
You can also use the -crmenable and -ncrmenable options to check for possible linking errors. If you believe that your project enabled for ClearQuest may contain activities that are not linked to a ClearQuest record, run chproject -crmenable. This operation scans all activities in the project, migrating all activities that are not linked. To check for linked activities in projects that have been disabled for use with ClearQuest, run chproject -ncrmenable. This operation removes links between activities as needed. See Managing Software Projects for more information.
Identities: You must have one of the following identities:
Project owner
Project VOB owner
root (UNIX)
Member of the ClearCase group (ClearCase on Windows only)
Local administrator of the ClearCase LT server host (ClearCase LT on Windows only)
Locks: An error occurs if there are locks on any of the following objects: the project, the UCM project VOB.
Mastership: (Replicated VOBs only) Your current replica must master the project.
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -cq). See the comments reference page. Comments can be edited with chevent.
-dmo·dcomp component-selector[,... ]
Removes one or more components from the project's set of modifiable components.
MOVING THE PROJECT TO ANOTHER FOLDER. Default: None.
CHANGING THE RECOMMENDED PROMOTION LEVEL FOR A REBASE OPERATION. Default: None.
SETTING PROJECT POLICY. Default: None.
SELECTING A PROJECT. Default: None.
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
NOTE: In the UNIX examples that follow, arguments and output that show multicomponent VOB tags are not applicable to ClearCase LT, which recognizes only single-component VOB tags. In this manual, a multicomponent VOB tag is by convention a two-component VOB tag of the form /vobs/vob-tag-leaf-for example, /vobs/src. A single-component VOB tag consists of a leaf only-for example, /src. In all other respects, the examples are valid for ClearCase LT.
Add the modifiable component, webo_modeler, to the project.
cmd-context chproject -amod webo_modeler webo_proj1@/vobs/webo_pvob
Changed modifiable component list for project "webo_proj1@/vobs/webo_pvob".
chbl, deliver, lscomp, lsproject, mkproject, mkcomp, rebase, rmproject
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |