站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题在不同版本eclipse的workspace之间传输项目(下)

在不同版本eclipse的workspace之间传输项目(下)

摘要: 把项目从eclipse3.1转移到eclipse3.2中
div class="tpc_content" > 这篇文章是<<在不同版本eclipse的workspace之间传输项目>>的下篇
内容是:
把项目从eclipse3.1转移到eclipse3.2中

为什么要另外再写一篇呢?
很简单,因为刚刚的方法对3.2无效,看下图:
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/why1-2.gif');" onload="if(this.width>'700')this.width='700';">
可以看到如果要导入的文件夹名称写为"/"的话,不能finish.
所以要换方法咯,我的方法会麻烦一点,我截图已经很仔细了,希望能讲清楚:P

1.这是在3.1的工作台中,项目名称是org.rangwei.rcp.mail.
首先以zip形式导出.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a1.gif');" onload="if(this.width>'700')this.width='700';">
2.还是在3.1中,我把项目导出在d:org.rangwei.rcp.mail.zip的位置:
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a2.gif');" onload="if(this.width>'700')this.width='700';">
3.这是导出的zip文件:
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a3.gif');" onload="if(this.width>'700')this.width='700';">
4.现在换到3.2了,注意:
下面所有的操作(4-15)都在3.2的工作台中
首先先新建一个叫"temp"的空白project.不是Java Project都可以.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a4.gif');" onload="if(this.width>'700')this.width='700';">
5.然后在temp里选"导入"
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a5.gif');" onload="if(this.width>'700')this.width='700';">
6.导入Archive file,如下图所示:
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a6.gif');" onload="if(this.width>'700')this.width='700';">
7.导入后的项目是个结构.当然和原来在3.1中不一样了.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a7.gif');" onload="if(this.width>'700')this.width='700';">
8.现在新建一个Java Project,名称就填导入的项目名称好了,我这里是org.rangwei.rcp.mail
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a8.gif');" onload="if(this.width>'700')this.width='700';">
9.现在切换到Resource视图下,你可以通过Window-->Perspective-->Resource选择.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a9.gif');" onload="if(this.width>'700')this.width='700';">
10.可以看到两个项目的结构在Resource视图下是这样的,如下图所示.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a10.gif');" onload="if(this.width>'700')this.width='700';">
11.现在把temp目录下org.rangwei.rcp.mail文件夹(不包括它)下所有的文件全Copy下来.
注意,一定记得把.classpath和.project这两个也copy下来,它们记录了项目的的编译路径等.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a11.gif');" onload="if(this.width>'700')this.width='700';">
12.然后在org.rangwei.rcp.mail下粘贴.
如下图所示:
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a12.gif');" onload="if(this.width>'700')this.width='700';">
13.eclipse提示是否覆盖.classpath,选Yes To All.
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a13.gif');" onload="if(this.width>'700')this.width='700';">
14.Copy完后的项目结构
=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a14.gif');" onload="if(this.width>'700')this.width='700';">
15.现在转回Java视图下,可以看到org.rangwei.rcp.mail项目和在3.1下的状态一模一样了:)

=700) window.open('http://blog.csdn.net/images/blog_csdn_net/starshus/a15.gif');" onload="if(this.width>'700')this.width='700';">
16.最后当然是删掉temp项目了.然后clean...build....

小结,希望我讲清楚了,大家如果有更简单的方法希望分享哦:P

↑返回目录
前一篇: 在不同版本eclipse的workspace之间传输项目(上)
后一篇: Eclipse的发布传统