You can add one or more existing projects to
the current working directory. The current working directory must
be in a maintained work area whose project is modifiable by the user.
Use this subcommand to add projects as subprojects. If the context
project is in the working state, you must be the
owner of that 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 subproject with a component that is different from the
parent project, the different version of the subproject is associated
with the current task.
About this task
ccm use -p|-project [-t|-task task_spec] project_spec...
- project_spec
- Specifies the projects you are using. See Project specification for details.
Special handling
might be required in shared projects (see shared_project_directory_checkin).
- -t|-task -task_spec
- Specifies the task that is associated with any directory checked
out in order to add a new member. If omitted, the current task is
used. 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
SubPrj-one:project:1 project
to the current directory:
ccm use -p -task
31 SubPrj-one:project:1