Product | Command Type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Platform |
---|
UNIX |
Windows |
The mkproject command creates a project. A project includes policy information and configuration information.
Projects are created in folders. A folder or folder hierarchy must be in place before you create a project. If no folder exists, you can specify RootFolder as the folder selector with the -in option. RootFolder is a predefined object that represents the parent folder of a folder hierarchy. See mkfolder for more information.
Projects maintain a list of components that can be modified within the project. You can specify these with the -modcomp option. Streams in the project can make changes, such as checking out files, only in modifiable components; all other components are read-only.
You can set or unset projectwide policies, such as specifying that views attached to the integration stream must be snapshot views. Policies are identified by their keywords. Table 12 describes these policies and lists the keywords used to set them. For more information about setting policies, see Managing Software Projects.
Policy | Keyword |
---|---|
Recommend snapshot views for integration work. | POLICY_UNIX_INT_SNAP (UNIX) POLICY_WIN_INT_SNAP (Windows) |
Recommend snapshot views for development work. | POLICY_UNIX_DEV_SNAP (UNIX) POLICY_WIN_DEV_SNAP (Windows) |
Require a development stream to be based on the current recommended baselines before it can deliver changes to its default target stream. | POLICY_DELIVER_REQUIRE_REBASE |
Do not allow delivery from a development stream that has checkouts. | POLICY_DELIVER_NCO_DEVSTR |
Allow a deliver operation from a stream in the same project to include changes from the stream's foundation baselines. | POLICY_INTRAPROJECT_DELIVER |
Allow a deliver operation from a stream in the same project to contain changes in components that are not included in the target stream's configuration. The changes in the missing components are not delivered.1 | POLICY_INTRAPROJECT_DELIVER |
Allow streams in this project to accept changes in a deliver operation from a stream in a different project. | POLICY_INTERPROJECT_DELIVER |
Allow a deliver operation from a stream in a different project to include changes from the stream's foundation baselines. This policy is ignored if interproject delivery is disabled. | POLICY_INTERPROJECT_DELIVER |
Require a deliver operation from a stream in a different project to deliver changes in all components. This policy is ignored if interproject delivery is disabled.1 | POLICY_INTERPROJECT_DELIVER |
Allow a deliver operation from a stream in a different project to contain changes in components that are not modifiable in the target stream's configuration. The changes in the nonmodifiable components are not delivered. This policy is ignored if interproject delivery is disabled. | POLICY_INTERPROJECT_DELIVER |
1. Defaults are different for intraproject and interproject deliver operations. |
Optionally, you can link a project to a Rational ClearQuest database. For related information, see chproject.
Identities: No special identity required.
Locks: An error occurs if one or more of these objects are locked: the project VOB.
Mastership: (Replicated VOBs only) No mastership restrictions.
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -c). See the comments reference page. Comments can be edited with chevent.
SPECIFYING A FOLDER FOR THE PROJECT. Default: None.
SPECIFYING MODIFIABLE COMPONENTS. Default: None.
SETTING PROJECT POLICY. Default: None.
SPECIFYING A LINK TO THE CLEARQUEST DATABASE. Default: No linking.
SPECIFYING THE PROJECT NAME. Default: A generated name.
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.
Create a project in the webo_projects folder of the project VOB webo_pvob.
cmd-context mkproject -c "creating webo project release 1" \
-in webo_projects@/vobs/webo_pvob webo_proj1@/vobs/webo_pvob
Created project "webo_proj1".
chproject, lsproject, mkfolder, rmproject
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |