Import different versions of a project into Eclipse

前端 未结 3 1636
醉梦人生
醉梦人生 2021-01-04 22:18

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

相关标签:
3条回答
  • 2021-01-04 22:53

    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>
    
    0 讨论(0)
  • 2021-01-04 22:53

    If the project has a different name that message is a bit strange. Anyway try editing the .project file in the root folder of the second project and change the value of the tag name

    The .project file is hidden

    0 讨论(0)
  • 2021-01-04 23:03

    What you can do is create a new project with the name that you want it to be called. Once you do that right click on the new project and click import. You can then import your old project into this one which will have all the same files except a different name.

    0 讨论(0)
提交回复
热议问题