You can use a different version of an object
in the current working directory. You can also add existing objects
as new project members under the current working directory. The current
working directory must be in a maintained work area whose project
is modifiable by the user. If the context project is in the working state,
you must own the project. If the context project is in the prep state,
you must be a build manager.
The following applies if
you are using a different version of a subcomponent. If the subcomponent
is a static product with a component that is different from the parent
project, the different version of the product is associated with the
current task.
About this task
ccm use [-r|-rules|-recommend] [-t|-task task_spec] file_spec...
- file_spec
- Specifies the object versions you are using. See File specification for details.
- -r|-rules|-recommend
- Uses the version selected by the selection rules.
- -t|-task -task_spec
- Specifies the task that is associated with the current directory
that was checked out when a new member was added. When an object is
added to a directory, if the directory is in a static state
such as integrate, it is automatically checked
out. If the directory is in a state that is writable by you, then
the existing directory version is updated with the new member. See Task specification for details.
Example
- Add the util-b2 and tools-b2 projects
to the current directory.
ccm use -p util-b2
tools-b2
- Use the recommended version for file_top_1.txt under
the current directory:
ccm use -rules file_top_1.txt
- Add an existing member file_sub_1.txt-1 to
the current directory:
ccm use -task 29 file_sub_1.txt-1:ascii:1