facebook

right way to import existing project

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #202753 Reply

    partitura
    Member

    I have an existing web project on an machine running eclipse 3.0 M4 without myEclipse. I would like to move that project to a different machine running eclipse 3.0 WITH myEclipse. What is the best way of doing this without making a mess of things?

    Thanks
    Paul Phillips

    #202754 Reply

    Riyad Kalla
    Member

    Paul,
    Since the project isn’t already made under MyEclipse we can’t just use the import facility. I had to do this with 2 projects of my own and here is how I did it:

    1) Copy over entire source tree to new machine
    2) Open MyEclipse, create new Web Model Project, point to the already existing dir
    3) Hit new, it will read the files and create a new project with those files
    4) Adjust the src/ and output build paths/ and the webroot. Make sure to adjust this under Window->Prefs->MyEclipse->J2EE->Project Template
    5) Add Struts Capabilities as necessary.

    Let me know if this worked for you. Backup the project directory incase Eclipse does anything to the project (I’ve not used Eclipse 3.x)

    #202770 Reply

    partitura
    Member

    Hello,

    This works, but it does not import the project into the workspace – it seems to leave it in the filesystem where it was. I tried just putting it in the workspace to begin with, but then it would not do the import. Is there a setting somewhere that forces it to copy the project from its current location into the workspace?

    Thanks!

    Paul Phillips

    #202776 Reply

    Riyad Kalla
    Member

    Ahh, if you physically want it in the workspace directory (<eclipse install>\workspace, you need to put it into that directory then follow my steps (not using Import, but doing the steps I outline above) and you should be all set.

    You can only import projects that have been created with Eclipse or associated plugin, because the necessary data files (.project, .classpath, .myeclipse, etc.) will be in the project such that Eclipse knows how to handle the importing. Keep in mind though that it just brings the project into your workable projects in Eclipse, it doesn’t physically move the project on your HD anywhere new.

    Let me know if that worked.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: right way to import existing project

You must be logged in to post in the forum log in