Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone project with eclipse?

Tags:

java

eclipse

I'm learning JAVA with Eclipse (ADT , Latest version - For Android development).
Each lesson we enhance the same project. (I don't like this approach)
So - I want to create different project for each lesson so :
Each lesson I'm cloning the main folder - and then I import it as an existing project.
( I thought that cloning + renaming the folder - would be fine)

But :

Eclipse says that the project already exists. (make sense)

Question

If I have a folder that contains a project ( LeadoMat) :

enter image description here

, And I'm creating folder LeadoMat_Ver2 ( cloned files)

— How/What should I do in order for eclipse to accept it as a new project named : LeadoMat_Ver2 ?

like image 793
Royi Namir Avatar asked Aug 17 '14 11:08

Royi Namir


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 clone a Gitlab project in Eclipse?

Select the "File" > "Import" option from the menu: Select the "General" > "Projects from Git" option. Select the "Clone URI" option and click next. Now paste the string you copied from Gitlab into the "URI" text field (Eclipse may paste it automatically).


1 Answers

The simplest approach would probably be to do the copying right in eclipse:

Right Click your Project -> Copy Right Click in the Project Explorer -> Paste  or  CTRL + C & CTRL + V 

Eclipse will then automatically prompt you to enter a new name for the clone. Then you'll have a full copy of your project with the new name.


The reason why eclipse thinks that it is the same project, is because you also clone the .project-files which contain the name of the project used in eclipse.

like image 150
i_turo Avatar answered Sep 21 '22 00:09

i_turo