Reputation: 4767
I must be missing something but not sure what. Trying to replicate the function of the ClearProjExp steps to create project with a component and a composite baseline using the command line and scripts to automate out processes. ClearCase 8.0.0.3 / AIX.
Select New Project ...
Project created
Select Project, Edit Baseline Dependencies ...
Composite baseline created.
I can create a project and a stream with one or more components using the command line, but am stumped adding the composite. I can't add a non-modifiable component to the project and I can't make the composite baseline because the composite is not in the project. What am I missing please?
cleartool mkproject
-in myfolder@/vobs/Appplication_pvob
-model DEFAULT
-blname_template component,date,time,basename
-policy ${POLICY}
-npolicy ${NEG_POLCIY}
-modcomp ComponentA, ComponentA_composite my_project_1.0@/vobs/Appplication_pvob
cleartool: Warning: Skipping component "ComponentA_composite". This component stores only baselines, not file elements, and cannot be modified directly by users.
cleartool mkstream
-integration
-in my_project_1.0@/vobs/Appplication_pvob
-baseline ComponentA_130626_011525_BL0.1 stream:my_project_1.0_int@/vobs/Appplication_pvob
cleartool mkbl
-component ComponentA_composite@/vobs/Appplication_pvob
-adep ComponentA@/vobs/Appplication_pvob
-view ccadmin_my_project_1.0_int BL0
cleartool: Error: Cannot make baseline of component "ComponentA_composite" because it is not in the configuration of stream "my_project_1.0_int".
cleartool: Error: Unable to create baselines.
Upvotes: 1
Views: 2685
Reputation: 1323593
You should:
Component_A
" firstcleartool mkcomp -nroot ComponentA_composite@/vobs/Appplication_pvob
(you did that already)cd /view/ccadmin_my_project_1.0_int
cleartool rebase -bas ComponentA_composite_INITIAL
cleartool mkbl -comp ComponentA_composite@/vobs/Appplication_pvob -adepends_on component:ComponentA@/vobs/Appplication_pvob -view ccadmin_my_project_1.0_int BL0
That last part should work since the foundation baselines of the stream does include the rootless component ComponentA_composite
.
Upvotes: 2