Windchill 中常用命令

1.在windchill shell中输入windchill version,用来查看windchill的版本
2. xconfmanager -s name=value -t 目标文件 -p 用来在xconf和properties文件中增加条目,例如xconfmanager -s wt.servlet.ajp.minPort=8010 codebase/wt.properties 。其中-s表示根据name找到value,-t表示目标文件,-p表示执行,-u表示用户名,-p表示密码。如果要验证文件是否修改成功,可以执行命令:xconfmanager -d name,例如:xconfmanager -d wt.servlet.ajp.minPort
3.修改rbinfo文件的两种方式,这里以修改生命周期状态举例说明:
规范操作:
a 编辑WT_HOME\wtCustom\wt\lifecycle目录下的StateRB.rbInfo和StateRB_zh_CN.rbInfo文件然后保存
b 在windchill shell执行ant -f bin/tools.xmlbundle_custom -Dbundle.input=registry 或 toolsbundle_custom批量编译
c 在windchill shell执行ant -fcodebase\MakeJar.xml
d 在windchill shell 执行enumCustomize,查看是否客制化成功!
不规范操作:
a 编辑WT_HOME\src\wt\lifecycle目录下的StateRB.rbInfo和StateRB_zh_CN.rbInfo文件然后保存
b 在windchill shell执行resourcebuild wt.lifecycle.StateRB
c 在windchill shell执行ant -fcodebase\MakeJar.xml (文件是枚举类型的时候必须执行此命令,文件是不是枚举类型,可以看文件中是否存在此行:ResourceInfo.class=wt.tools.resource.EnumResourceInfo)
d 在windchill shell 执行enumCustomize,查看是否客制化成功!
4.windchill stop、windchill start、windchill stop&windchill start用来关闭和启动windchill
5.如果要修改OOTB的xml、jsp、js文件,将文件分别复制到WT_HOME\wtSafeArea\siteMod、WT_HOME\wtSafeArea\ptcCurrent、WT_HOME\wtSafeArea\ptcOrig下,其中ptcCurrent文件夹下存放当前版本的文件,ptcOrig文件夹存放系统最原始的文件,siteMod文件夹存放修改后的文件,编辑保存后,执行ant -f bin/swmaint.xml installSiteChanges命令将文件部署codebase对应的目录下
6.l如果要添加客制化的xconf文件,可以在windchill shell中执行命令xconfmanager - i -p,命令执行成功后会在site.xconf和WT_HOME\declarations.xconf中增加相应条目,同时会在codebase/config/xconf目录下生成custom.properties文件。

发布了16 篇原创文章 · 获赞 1 · 访问量 287

猜你喜欢

转载自blog.csdn.net/xiguasweet/article/details/104716071