Setting Up A New CFEclipse Project Using Subclipse

Someone was asking on the CFEclipse mailing list about how to setup a SVN project in CFEclipse. I started typing up an email reply but thought a blog post with pictures might make more sense.

This tutorial assumes you have the following installed:

  • CFEclipse
  • Subclipse plugin
  • A remote Subversion repository

First open CFEclipse and open the SVN Repository view.

Window > Show View > SVN Repository

Next click on the Add New Repository button.

Add new repository

Enter the URL of you remote repository and click Finish. I usually enter the root URL so I can access anything within the repository. Your remote repository should now be visible in the SVN Repository view.

If you need to add existing local project files to your repository you can do that at this point by creating a directory within your repository and doing an import:

SVN Import

Now expand the repository and locate the directory you wish to checkout:

Checkout:

You should be able to leave the defaults selected and click Finish. We will checkout our project using the New Project Wizard and we will checkout the HEAD revision.

Checkout Dialog

When prompted for a Wizard - select:

CFEclipse > CFML Project

CFML Project Wizard

Click next and enter your project name and select your location and click Finish:

Project creation

Your CFEclipse perspective should open to your new project. You should see the standard SVN icons letting you know these files are under version control:

Checked out files

And you can now manage these files in Subversion via the Team menu:

Team Menu

2 Comments

  1. Posted February 25, 2008 at 12:36 pm | Permalink

    Good post. What I don’t like about Subclipse is that I can’t check out to a _folder_ in a project; I have to check out the entire project or nothing at all. That part kind of sucks and has caused me to keep looking for a different client. On Windows I use TSVN, but I haven’t found anything _nearly_ as good for Mac.

  2. Posted February 25, 2008 at 3:12 pm | Permalink

    Nice post Jim. Subclipse is great cause of its integration into cfeclipse. I’m sure this is one of the (many) reasons developers love eclipse/aptana!

    No tortoise on Linux (that I know of) unfortunately, that makes Subclipse even more valuable. Although learning the command line actions is also very important not to mention powerful.

    The Windows ’shell’ integration with Tortoise can be tricky if you don’t know what you’re doing, like moving a file which is already under source control etc you don’t want to just left click and move it otherwise it won’t be ‘moved’ in SVN. Another thing that Subclipse makes easy for you :)

Creative Commons License

Copyright © 2007 thecrumb.com. All rights reserved.