一、概念:
xconfmanager是一个命令行使用工具
二、用途:
xconfmanager 是一个用来在 Windchill 属性文件中添加、移除和修改属性值的命令行工具
三、特点:
- xconfmanger 工具将所做的修改保存在 site.xconf 文件并提供一个选项可以根据这些修改生成更新的属性文件
- site.xconf 文件包含对 Windchill 属性文件的修改,从安装 Windchill 开始直到每一次使用 xconfmanger 工具进行的修改
四、语法:
1、在 Windchill Shell 中执行下面的命令展示属性当前的
xconfmanager -d <property_names>
这里 <property_names> 是由逗号分隔的属性名称。例如,xconfmanager -d wt.home
或者 xconfmanager -d wt.home,wt.rmi.server.hostname
2、运行下面的命令修改属性的值:
xconfmanager -s <property_name>=<property_value> -t <property_file> -p
3、标识属性项及其新值
xconfmanager -s <property_name>=<property_value>
4、指明property文件的路径
xconfmanager -t <property_file>
如果properties文件名或者路径存在空格,需要使用双引号(“”)把<property_file>包围起来,
推荐使用全路径,否则需要注意xconfmanager的执行路径
5、传播修改的属性
xconfmanager -p
用于传播属性修改,先传播至xcof文件,在传播至目标properties文件,以保持二者一致。
6、添加属性值
xconfmanager -add
仅用于在属性已经存在的情况下再次添加一个属性值(多属性值)
7、移除属性值
xconfmanager -remove
参数用来移除多属性值