Import (non Eclipse-based) project from CVS into Eclipse

2

This post describes how to import a (non-Eclipse) based project from CVS into Eclipse.

For plain Java projects

  1. Right-click on the module you want to check out and choose “Check out As”.
  2. Make sure that “Check out as project configured using the new project wizard” is selected in the pop-up window and push the “Next” button. Warning: not checking out a module/project using a project wizard will leave you with a project without a Java builder.
  3. Choose your release (Head in most cases) and push the “Finish” button
  4. You will be presented with a screen to choose a project Wizard. If you have a plain Java project, choose “Java Project”.
  5. After pressing the “Next” button once more, give your project a name, preferrably the same name as the CVS module you are checking out
  6. In the next window, leave everything as is, and click “Finish”. The project will be imported from CVS.

For web applications (.war)

In case you have a web-application, things are much easier, if you have the Lomboz and/or Tomcat plug-ins installed. In that case, you choose the “Tomcat project” or “Lomboz J2ee project” options in step 4.

This saves you quite some effort in setting up the right classpath and deployment facilities!

Share.

About Author

2 Comments

  1. Zeger Hendrikse on

    You’ll also notice that Eclipse doesn’t recognize JSP files as ASCII!
    This you definitely want to fix. From the Eclipse newsletter:

    go to the Eclipse main menu and select the following:
    Window — > Preferences — > Team
    Open up the Team node and click on File Content. Review the file types listed
    and check to see if any of the text file types used in your project are
    missing from the list. To add a file type, click the Add button. In the Enter
    File Extension panel, type jsp, then click OK. Eclipse will then add the
    entry for Java Server Pages as ASCII.
    To tell CVS not to put specific file types under source control, go to the
    Eclipse main menu and select the following:
    Window — > Preferences — > Team
    Open up the Team node and click on Ignored Resource. Review the list for file
    types you’d like to ignore. Click the Add button. In the Enter Ignore
    Pattern, enter *.class. Click OK. CVS will not place Java binaries under
    source control.