ccm typedef -create 命令用于创建类型定义。类型不得存在,并且您必须有 type_developer 或 ccm_admin 角色可用。
关于此任务
ccm typedef -c|-create -desc|-description description
-st|-super_type super_type
[-stf|-source_template_file template_file]
[-rke|-range_keyword_expand (range_integer|inherit)]
[-pco|-parallel_check_out (inherit | true | false)]
[-pci|-parallel_check_in (inherit | true | false)]
([-active] | [-inactive])
([-x|-execute_permission] | [-nox|-noexecute_permission])
([-wi|-win_ignore] | [-nowi|-nowin_ignore])
([-ui|-unix_ignore] | [-noui|-nounix_ignore])
[(-match match_expression)...]
[(-wm|-win_match match_expression)...]
[(-um|-unix_match match_expression)...]
[(-suffix|-suffixes suffix)...]
[(-ws|-win_suffix|-win_suffixes suffix)...]
[(-us|-unix_suffix|-unix_suffixes suffix)...] type_name
- -active
- 指定类型定义处于活动状态并可供创建新对象时使用。此设置为缺省设置。
- -desc|-description description
- 为类型指定单行描述。用于描述类型的含义或用途。
- -inactive
- 指定类型定义处于不活动状态。用户无法创建或检入此类型的对象。
- -match match_expression
- 指定用于在 Windows 和 UNIX 上针对此类型定义来匹配文件的 match_expression 正则表达式。此选项等效于指定 -wm match_expression -um match_expression。
- -nowi|-nowin_ignore
- 在 Windows 上,指定在协调或迁移期间缺省情况下不忽略此类型的文件。
- -noui|-nounix_ignore
- 在 UNIX 上,指定在协调或迁移期间缺省情况下不忽略此类型的文件。
- -nox|-noexecute_permission
- 在 UNIX 客户机上,指定工作区中此类型的文件不具有 UNIX ’x’ 执行许可权。
- -pci|-parallel_check_in (inherit | true | false)
- 指定是否可检入此类型的并行对象。值 inherit 表示此属性继承自其 super_type。值 true 表示根据与对象发布标识关联的发布标识定义上的设置,可能允许并行检入。
值 false 表示不允许并行检入。
- -pco|-parallel_check_out (inherit | true | false)
- 指定是否可检出此类型的并行对象。值 inherit 表示此属性继承自其 super_type。值 true 表示根据与对象发布标识关联的发布标识定义上的设置,可能允许并行检出。
值 false 表示不允许并行检出。
- -rke|-range_keyword_expand (range_integer|inherit)
- 指定关键字扩展的范围。值 inherit 表示该设置继承自其 super_type。
请参阅 range_for_keyword_expand 以获取详细信息。
- -st|-super_type super_type
- 指定此类型的 super_type。super_type 必须是基于文件的类型。典型值为 ascii 或 binary。
创建循环继承是无效的。
- -stf|-source_template_file template_file
- 指定源模板。该模板读取自 template_file。
该模板可以使用创建、检出以及(可选)检入时扩展的 Rational® Synergy 关键字。
- -suffix|-suffixes suffix)...
- 指定添加 Windows 和 UNIX 文件匹配模式以与指定的 suffix 匹配。
suffix 必须是以逗号分隔的一个或多个后缀,其中每个后缀以 ’.’ 开头,这等效于指定 -ws suffix -us suffix。
- type_name
- 指定要创建的新类型的名称。类型名称不能包含任何受限制字符。不能创建一个与现有类型同名的类型(即使大小写不同)。
- -wi|-win_ignore
- 在 Windows 上,指定在协调或迁移期间缺省情况下忽略此类型的文件。
- -ws|-win_suffix|-win_suffixes suffix
- 指定添加 Windows 文件匹配模式以与指定的 suffix 匹配。
suffix 必须是以逗号分隔的一个或多个后缀,其中每个后缀以 ’.’ 开头。
- -ui|-unix_ignore
- 在 UNIX 上,指定在协调或迁移期间缺省情况下忽略此类型的文件。
- -us|-unix_suffix|-unix_suffixes suffix
- 指定添加 UNIX 文件匹配模式以与指定的 suffix 匹配。
suffix 必须是以逗号分隔的一个或多个后缀,其中每个后缀以 ’.’ 开头。
- -x|-execute_permission
- 在 UNIX 客户机上,指定工作区中此类型的文件具有 UNIX ’x’ 执行许可权。