del.icio.us Digg DZone Reddit StumbleUpon
Software Development

Checking Out a SVN Project in Eclipse

In this visual tutorial we'll learn how to check a project out from an existing Subversion repository using the Subclipse plugin for Eclipse.

In this visual tutorial we'll learn how to check a project out from an existing Subversion repository using the Subclipse plugin for Eclipse.

I'm using the Eclipse IDE for Java EE Developers 3.4.1 (Ganymede) here, and Subclipse 1.4. I'm assuming that you already have Eclipse and Subclipse installed, that you already have a working Subversion repository, and the project that you want to check out already exists. If you haven't already installed Subclipse, please see my tutorial Installing the Subclipse Plugin for Eclipse/Subversion Integration.

Step 1. Bring up the New Project dialog. Right-click inside your Project Explorer and go to New > Project....

Bring up the New Project dialog

Step 2. Choose the SVN project wizard. The next dialog is called "New Project", and you will need to choose the wizard you want to use to create the new project. Choose SVN > Checkout Projects from SVN, as shown below, and then press the Next button.

Choose the SVN project wizard

Step 3. Select/create the repository location. The wizard asks us to either select or create a repository location, as shown below. We'll create one. Choose Create a new repository location and press Next.

Select/create the repository location

Step 4. Enter a repository location. The wizard asks us to provide a URL for the repository location. Enter your repository location and press Next if you want to select a folder within that location (for example, if you want to select a trunk folder), or select Finish if you've specified the exact folder you want to check out. For our purposes we'll press Next.

Enter a repository location

Step 5. Select a folder to check out. The wizard now wants us to select a folder that lives in the location you specified. Choose your folder as shown below, and press Next. (Again, we can just press Finish at this point, but I want to show you the options available.)

Select a folder to check out

Step 6. Specify checkout parameters. Now we can specify some parameters around the checkout. It's going to be different depending on the specifics of your folder. The default project name is going to be the name of the repository location we originally chose (for me, springinpractice) rather than the name of the folder we chose subsequently (for me, trunk), so if you need to change that feel free. After that press Next. Anyway here's how it looks:

Specify checkout parameters

Step 7. Specify checkout location. Subclipse wants to know where to place your new project, as below. You can choose whatever you like. I'll just go with my default workspace location (which would be what you would normally do) and press Finish.

Specify checkout location

After that, Eclipse will do its thing for a while (i.e., it will check out the project). After it's done, you should see your new project in the Project Explorer, as below.

The final result

Congratulations! That's it.

Social bookmarks: del.icio.us Digg DZone Reddit StumbleUpon

Comments (3)

Nice and clear. Many thanks.

By tony on Mar 20, 2009 at 8:09 AM PDT

how can we make a svn project as j2ee project?

By johnadams on Jul 16, 2009 at 12:44 AM PDT

fantastically concise...

By Anurag Singh on Feb 13, 2010 at 7:39 PM PST

Post a comment

Comments currently suppressed due to excessive spam. I'll reinstate them later, this time with approvals turned on. :-)

Spring in Practice
My brother and I are writing Spring in Practice for Manning!

What's New?

2009-08-30 - Check out my two-part series on DZone: Spring Integration: A Hands-On Tutorial.
2009-03-25 - My new article Getting Started with Spring Batch 2.0 is available on DZone.
Home | Consulting | Tech Articles | Mailing List | Contact | Spring Blog
Copyright © 2008 Wheeler Software, LLC.