将不同版本的项目导入Eclipse [英] Import different versions of a project into Eclipse

查看:464
本文介绍了将不同版本的项目导入Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中有一个项目,现在我想导入另一个不同名称和不同位置的项目,但具有相同的结构(相同的包,很多相同的类...),但是当我尝试导入它,它说有些项目无法导入,因为它们已经存在于工作区。如果我想同时拥有两个版本的一个项目,该怎么办?我该怎么改? Thx。

解决方案

由于项目在.project文件中具有相同的项目名称,eclipse不会允许它们被导入进入工作区。



打开项目根的.project文件,确认并更改其名称,然后导入。

 < projectDescription> 
< name> project1< / name>
< / projectDescription>


I have a project in Eclipse and now I want to import another project with a different name and in different location, but with a same structure(same packages, a lot of same classes...), but when I try to import it, it says " Some projects cannot be imported because they already exist in the workspace". What should I do if I want to have both of two versions of one project? What should I change? Thx.

解决方案

As the projects would have the same project names in the .project file, eclipse would not allow them to be imported into the workspace.

Open the .project file for the project root, confirm and change its name and then import it.

<projectDescription>
    <name>project1</name>
</projectDescription>

这篇关于将不同版本的项目导入Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆