我必须遗漏一些东西,但不确定是什么。 尝试复制ClearProjExp步骤的功能,使用命令行和脚本创建具有组件和复合基线的项目,以自动执行流程。 ClearCase 8.0.0.3 / AIX。
选择新项目...
已创建项目
选择Project,Edit Baseline Dependencies ...
创建了复合基线。
我可以使用命令行创建一个包含一个或多个组件的项目和流,但是我很难添加组合。我无法在项目中添加不可修改的组件,因为组合不在项目中,所以无法创建组合基线。我错过了什么?
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.
答案 0 :(得分:1)
你应该:
Component_A
”第一个
cleartool mkcomp -nroot ComponentA_composite@/vobs/Appplication_pvob
(你已经这样做了)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
最后一部分应该有效,因为流的基础基线确实包含无根组件ComponentA_composite
。