Search code examples
eclipsesvnworkspace

which eclipse project/workspace files should be added to source control?


I want to share an eclipse project with the rest of my team through SVN. Which files should I add to subversion? In the workspace, there are many files which IMHO are not supposed to be on source control - they are a few megabytes in size.

When adding just the project, another user who checks out the code still has to import the project into the workspace.

Edit: maybe the correct question here, is how can I share my eclipse workspace using subversion?


Solution

  • With Eclipse, you always have to import a project - there is no other way to do it - Eclipse won't detect projects if you just switch workspaces unless you've created/imported the project in that workspace before.

    You will need at a minimum:

    • .project
    • .classpath

    Personally I also add the settings folder, but its up to you:

    • .settings

    Then other users choose Import project and select the .project file.