您的位置:首页 > 其它

将服务器安装的Windchill迁移到本地分区以便用于开发和测试

2015-05-14 14:11 302 查看
打开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. 修改Solr相关配置

Windchill\solr-home\wblib\conf\solrcore.properties

data.dir=C\:\\ptc\\Windchill_10.2\\Windchill\\solr\\data

spell.dir=C\:\\ptc\\Windchill_10.2\\Windchill\\solr\\spellIndex

Windchill\solr-home\clflib\conf\solrcore.properties

data.dir=C\:\\ptc\\Windchill_10.2\\Windchill\\solr\\data

Windchill\solr-home\clfstructurelib\conf\solrcore.properties

data.dir=C\:\\ptc\\Windchill_10.2\\Windchill\\solr\\data

11. scripts目录中存放的是所有启动脚本



12. 在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



13. 在Eclipse中修改techrevmanager,techrevmanager-workflow中的源代码,只要不是新增/删除方法或者类

通过techagent.jar中的定制HotAgent,实现Java代码热部署
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐