Personal tools
You are here: Home Teaching How to Access the Course Examples
Document Actions

How to Access the Course Examples

A brief guide on accessing the examples for your course using anonymous SVN

UNDER CONSTRUCTION... All course examples are provided AS IS under the terms of this license.

Using Subversion (SVN) enables me to make changes to course examples in such a way that you can easily update your downloaded copies of the examples without having to download the entire code or missing any of the changes. Only new changes, if any, are downloaded and automatically applied to your downloaded copies.

You can access the examples by using SVN in Eclipse or NetBeans anonymously. When using the IDE's SVN client functionality, you will not need to use the command line or any other client to use SVN. This guide covers the use of SVN through Eclipse (you must have the Subversive plugin installed). The rest of this document covers the use of SVN through Eclipse. For information on the use of SVN through NetBeans, please refer to this guide.

Establishing Access to Example Repository

These are the one-time-only steps you should follow in Eclipse to establish access to the repository containing the examples:

  Window > Open Perspective > Other...  SVN Repository Exploring

  Right-click > New > Repository Location

  URL: http://luc-pervasive.googlecode.com/svn
  (leave all other fields with their default values)
  Finish

Now the example repository location shows up in the SVN repository perspective.

My courses map to subfolders of this repository as follows: 

  • 271, 313, 473: oop
  • 424: clientside
  • 433: webservices
  • 437: concurrency
  • 442: webapps

Checking out an Example Project for the First Time

You can check out any project into your workspace from the SVN repository perspective. To browse the repository, expand its entry, then the node labeled trunk, and note how the example projects show up as children of the trunk:

  http://luc-pervasive.googlecode.com/svn
    trunk
      concurrency
        ClickCounter
        ClickCounterMulti
        ...

To check out a specific project, right-click on it and choose Check Out.

Updating Your Copy of an Example Project

From the Java or Resource perspective, you can update your copy of a project you already checked out:

  Right-click on project > Team > Update
  Finish