在Eclipse中,如何将现有项目复制到另一个项目? [英] In Eclipse, how to copy an existing project to another project?

查看:53
本文介绍了在Eclipse中,如何将现有项目复制到另一个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,我有一个现有项目A.现在,我刚刚创建了另一个项目B,该项目为空.是否可以将项目A的所有文件(包括其源代码和相关库)复制到项目B?项目A中有很多涉及的库.如何正确执行此复制过程以确保仍然可以对复制的文件进行编译?

In Eclipse, I have one existing project, A. Right now, I have just created another project, B, which is empty. Is it possible to copy all the files of project A, including its source code and related libraries to project B? There are a lot of involved libraries in project A. How to do this copying process correctly to ensure the copied files can still be compiled?

推荐答案

您可以导入项目

OR

假设项目A和项目B的类型相同:

Assuming both project A and B are of same type:

您可以按原样复制 src 文件夹的内容.

You can copy the contents of src folder as it is.

对于库,只需转到构建路径并以与对项目A相同的方式添加它们.

For the libraries, just go to the build path and add them in the ssame way you did for project A.

这篇关于在Eclipse中,如何将现有项目复制到另一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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