Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check out an SVN project into Eclipse as a Java project?

I was trying to check out a project from SVN using Eclipse. I tried using "Checkout As" to make it into a "Java project from existing Ant script", but the project wizard requires the file to have already been downloaded. Is there a way to checkout the project into Eclipse as a Java project, without having to download it elsewhere first?

(I am using Eclipse Ganymade 3.4.1 with Subversive.)

like image 793
Hosam Aly Avatar asked Jan 02 '09 21:01

Hosam Aly


People also ask

How do I checkout a project in SVN?

Check out files from Subversion repositoryIn the Get from Version Control dialog, click Add Repository Location and specify the repository URL. Click Check Out. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.

How do I open SVN repository Exploring perspective in eclipse?

The Eclipse SVN plug-in provides a dedicated perspective for working with SVN repositories. To activate this perspective, choose Window > Open Perspective > Other... and select SVN Repository Exploring.


2 Answers

Here are the steps:

  • Install the subclipse plugin (provides svn connectivity in eclipse) and connect to the repository. Instructions here: http://subclipse.tigris.org/install.html
  • Go to File->New->Other->Under the SVN category, select Checkout Projects from SVN.
  • Select your project's root folder and select checkout as a project in the workspace.

It seems you are checking the .project file into the source repository. I would suggest not checking in the .project file so users can have their own version of the file. Also, if you use the subclipse plugin it allows you to check out and configure a source folder as a java project. This process creates the correct .project for you(with the java nature),

like image 142
neesh Avatar answered Sep 24 '22 15:09

neesh


If it wasn't checked in as a Java Project, you can add the java nature as shown here.

like image 45
Brandon Avatar answered Sep 23 '22 15:09

Brandon