打开Windchill分区的目录结构,其中
dbfile: 数据库客户端程序以及备份数据库
eclipse-kepler: EclipseIDE开发环境
ptc: 服务器上的Windchill_10.2的所有子目录(除SQLServer之外)

1. 必须将windchill.vhd的盘符改为[W], 否则系统无法正常运行,因为下面的配置文件修改皆是针对W盘生效的。
2. 必须在本地的hosts文件中添加域名解析项: acmserv.techpubsglobal.com 指向127.0.0.1
3. 调整W:\ptc\Windchill_10.2\Windchill\db\db.properties中的参数:
wt.pom.jdbc.database=[acm]
wt.pom.jdbc.host=[192.168.1.26]
wt.pom.jdbc.service=[WINDCHILL]
注:SQLServer数据库不在本地系统中,这里是远程连接到数据库服务器192.168.1.26
4. 修改Windchill/codebase/wt.properties中的盘符
C\:\\ptc\\Windchill_10.2 -->> W\:\\ptc\\Windchill_10.2
5. 修改Windchill/codebase/WEB-INF/web.xml
C:/ptc/Windchill_10.2 -->> W:/ptc/Windchill_10.2
6. 修改Windchill/tomcat/conf/Catalina/localhost/*.xml
C:\ptc\Windchill_10.2 -->> W:\ptc\Windchill_10.2
7. 修改HTTPServer/conf/httpd.conf
C:/ptc/Windchill_10.2 -->> W:/ptc/Windchill_10.2
8. 修改HTTPServer/conf/extra/*
C:/ptc/Windchill_10.2 -->> W:/ptc/Windchill_10.2
9. 修改WindchillDS/server/lib/set-java-home.bat
C:/ptc/Windchill_10.2 -->> W:/ptc/Windchill_10.2
10. scripts目录中存放的是所有启动脚本

11. 在wt.properties, wt.java.classpath首部添加
$(wt.home)$(dir.sep)devclasses$(dir.sep)trmclass$(path.sep)$(wt.home)$(dir.sep)devclasses$(dir.sep)wfclass$(path.sep)
Eclipse中的Preference/General/Workspace/Linked Resource,
添加DEV_OUTPUT_CLASS=W:\ptc\Windchill_10.2\Windchill\devClasses

设置svn中的项目的编译class目录输出,其中
项目techrevmanger
指向的Linked Resource=${DEV_OUTPUT_CLASS}\trmclass
techrevmanager-workflow
指向的Linked Resource=${DEV_OUTPUT_CLASS}\wfclass

12. 在Eclipse中修改techrevmanager,techrevmanager-workflow中的源代码,只要不是新增/删除方法或者类
通过techagent.jar中的定制HotAgent,实现Java代码热部署将服务器安装的Windchill迁移到本地分区以便用于开发和测试
原文:http://blog.csdn.net/robinsone/article/details/45720353