12

I just started a new project which has previously been developed in Eclipse. I have not used Eclipse since 2006 and it was for a short non-SVN-controlled project at that time. I have extensive experience with NetBeans and Visual Studio.

The code base is in an SVN repository. I have installed Eclipse (Helios) and TortiseSVN and downloaded the source. I see that there is a .project file and that it contains some eclipse references.

I would like to import the project so that I can edit the files under SVN control. I would then like to either commit the files via the Tortoise client, or more ideally, directly in Eclipse.

I have already reviewed a couple of web sites and questions on this forum, but have not been able to find a how to for this particular use case.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Guido Anselmi
  • 3,872
  • 8
  • 35
  • 58

4 Answers4

11

Note

  • You'll find the commands for SVN under the Team sub-menu when you right click on your project.

  • I've had trouble in the past when connecting to SVN repositories using the svn+ssh:// protocol - a quick fix is to change the SVN interface (under Window > Preferences > Team > SVN) to the pure Java option (SVNKit IIRC).

Community
  • 1
  • 1
no.good.at.coding
  • 20,221
  • 2
  • 60
  • 51
7

Eclipse Mars (4.5.1)

  1. Install an SVN plugin from Help > Eclipse Marketplace... > type "Subversive" or "Subclipse" > press Enter > click on Install

    Help Eclipse Marketplace Eclipse Marketplace

  2. Go to File > New > Project... > type "SVN" > select "Checkout Projects from SVN" or "Project from SVN" (it depends on the installed plugin(s)) > select repository > Next > select project > Finish

    File New Project

    Checkout Projects from SVN

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
3

Make sure you have the svn plugin installed see here - http://www.eclipse.org/subversive/downloads.php

  • From Eclipse's File menu, choose Import to display the import manager.
  • Choose Checkout Projects from SVN
  • Create a new location
  • Enter your repository url
  • Hit finish
gotomanners
  • 7,808
  • 1
  • 24
  • 39
2

You can do it directrly from Eclipse if you install Subclipse or Subversive plugin. Then you can either reimpoort your project into workspace or use Team -> Share option in context menu (right-click) of the project.

Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132