How to Open an Existing SVN Project in Eclipse
I just started a new project which has previously been dev开发者_C百科eloped 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.
You'll first need to install an SVN plugin for Eclipse - check out Subclipse.
The answers to this question document the steps for checking out from an SVN repository.
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 theSVN interface
(underWindow > Preferences > Team > SVN
) to the pure Java option (SVNKit IIRC).
Eclipse Mars (4.5.1)
Install an SVN plugin from Help > Eclipse Marketplace... > type "Subversive" or "Subclipse" > press Enter > click on Install
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
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
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.
精彩评论