views:

8785

answers:

4

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.)

+3  A: 

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

Brandon
A: 

Here are the steps:

  • Install the subclipse plugin (provides svn connectivity in eclipse) and connect to the repository. Insturctions 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 checkin the .project file in 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),

neesh
This doesn't make it a Java project if it's not already configured as so in the repository.
Hosam Aly
A: 

I had to add the .classpath too to form a java project. I made a dummy java project and looked in the workspace for this dummy java project to see what is required. I transferred the two files .profile and .claspath to my checked out and disconnected source from my subversion server. From then on it turned to a java project from just a plain old project.