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.xml bundle_custom -Dbundle.input=registry 或 toolsbundle_custom批量编译

       c    在windchill shell执行ant -f codebase\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 -f codebase\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 <ConfigurationRef xlink:href="codebase/config/xconf/custom.xconf" />  -p,命令执行成功后会在site.xconf和WT_HOME\declarations.xconf中增加相应条目,同时会在codebase/config/xconf目录下生成custom.properties文件。

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值