Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Eclipse, how to copy an existing project to another project?

Tags:

eclipse

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?

like image 251
bit-question Avatar asked May 26 '11 03:05

bit-question


People also ask

How do I clone a workspace in Eclipse?

Best way is to copy the . metadata folder to a new folder and open that folder in Eclipse Workspace dialog box. Show activity on this post. Just copy the whole workspace on your local file system.

How do I find and replace an entire project in Eclipse?

Search->File menu (also accessible using Ctrl+H , then navigate to File tab), enter the text to search for, hit the Replace... button which will give you another dialog where you can replace text.


1 Answers

This question appears in Google search as top result for query "copy project in eclipse".

To copy project in Eclipse:

1) right click on project in Package Explorer view;

2) choose Copy;

3) right click on free place in Package Explorer view;

4) choose Paste;

5) enter new name in the prompt window.

To answer actual question, the best way is to delete project B and after -- copy project A as explained above and give it name B.

like image 171
yurin Avatar answered Sep 20 '22 16:09

yurin