CSE 70, Spring 2010

Software Engineering

Lab Instructions


Using Subclipse and Handling Conflicts.

PART I: Eclipse and Subclipse

  1. Start Eclipse. (In a terminal, run eclipse.)
  2. Select an appropriate place to put your workspace. All your project files will be saved under this directory. The default is probably fine.
  3. Download your project from the repository using the Subclipse plugin:
    1. From the Window menu, select Show View -> Other..., then select SVN -> SVN Repositories and press OK.
    2. In the SVN Repositories tab at the bottom-right, press Add SVN Repository, enter your team's SVN repository URL (like http://cse70.ucsd.edu/svn/teamN), then press Finish. You'll need to enter the username and password we provided you.
    3. You should now see an item in the SVN Repositories tab. Expand it, then right-click on trunk and select Checkout...
    4. In the Checkout from SVN dialog, select Check out as a project configured using the New Project Wizard and press Finish.
    5. In the New Project dialog, select Java -> Java Project and press Next.
    6. In the New Java Project dialog, enter a project name (anything you like) and press Finish.
    7. In the Open Associated Perspective? dialog, press Yes.
    8. In the Confirm Overwrite dialog, press OK.
  4. Now you'll need to do some post-checkout configuration:
    1. You should now be in the Java perspective and see an item in the Package tab on the left. Expand it.
    2. In the Package tab, find your tests directory. Right-click on it and select Build Path -> Use as Source Folder. The icon should change to look like the one for the src directory.
    3. In the Package tab, expand the lib and lib/jmock directories. Select all the jar files, then right-click and select Build Path -> Add to Build Path. The jars should appear under Referenced Libraries.
  5. To run the program, right-click on the source folder src and select Run As-> Java Application. Eclipse will automatically locate your main and begin your IRC Client.
  6. To run all the tests, right-click on the source folder tests and select Run As-> JUnit Tests. You should see a nice window displaying all tests that were run and whether or not they passed.

PART II: Editing files, Team Synchronizing Perspective, and Checking In files

  1. In your teams, get together and add a comment to IRCClient.java above the constructor like so:/**Default Constructor**/
  2. We will now use the Team Syncrhonizing perspective to view the changes
  3. To return to your previous perspective, select Window-> Open Perspective-> Other... and select the Java (default) perspective.

Valid XHTML 1.0 Strict Valid CSS!