Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Source code version control

Using WebSphere Studio and ClearCase LT

Sandeep Desai (sandeep@us.ibm.com), E-business Architect, IBM
Sandeep Desai is an e-business architect for IBM's ISV and Developer Relations Technical Consulting team in Austin, Texas. Sandeep works with IBM's business partners -- from startups to large firms -- helping to excite, evangelize, educate, and enable them on IBM's e-business on demand platform. Sandeep holds the following technical certifications, among others: IBM Certified e-business Solution Advisor, IBM Certified e-business Solution Designer, IBM Certified e-business Solution Technologist, IBM Certified Specialist - WebSphere Application Server, IBM Certified Systems Expert - WebSphere Application Server.

Summary:  This tutorial introduces the essential steps for team-based application development integrating Rational ClearCase LT and Application Developer. From the perspective of two developers, the tutorial covers setting up both local and team environments; adding files to, and importing files from, the source control; managing how different users can access and manipulate them in a local environment; and ultimately synchronizing with other developers associated with the project.

Date:  23 Nov 2004
Level:  Introductory PDF:  A4 and Letter (67 KB | 20 pages)Get Adobe® Reader®

Activity:  2388 views
Comments:  

Before you start

Introduction

Managing source code is a big challenge that development teams have to face. When multiple developers are working on the same set of source files, there is always a risk of two or more developers working on the same line of code in the same source file. Then it's anyone's guess as to whose edits get overwritten. Some other major challenges are to maintain change history, and to provide and manage access to only those developers who need to work on a particular set of files.

Fortunately, there are tools -- commonly referred to as version control systems -- that will watch over and manage access for our happy little development teams and make sure that all source edits are monitored and recorded. By checking individual files -- and in some cases portions of files -- in and out, developers can avoid stepping on another's toes. By setting activities (in the case of ClearCase LT), you can look at the evolution of a project and see why someone is making certain changes to a file. Ultimately, this provides a means to safely monitor the progress of an application's development and gives you control over backing out changes intelligently if mistakes happen.

WebSphere Studio Application Developer provides a development environment and provides plug-ins for popular version control systems. This tutorial shows how to manage source code using ClearCase LT as the version control system. The scenarios simulate two developers working on the same application. The first developer, Developer 1, is responsible for setting up the project, importing the code, and getting everything into ClearCase initially. Developer 2 accesses the project, extracts the code from the ClearCase repository, makes a change as would be the case in a real world team environment, and puts the changed file back into the repository. Finally, Developer 1 returns to synchronize the code by analyzing the changes made by Developer 2, and imports those changes.

All that is required to reproduce this scenario is a single machine. The same concepts apply to development environments where each developer has their own machine.


Terms to understand

Following is a list of frequently used ClearCase terms.

  • VOB versioned object database) - a data repository that holds the files, directories, and any objects that collectively represent a product or a development effort.
  • UCM - an out-of-the-box project management process layered on top of base ClearCase. UCM simplifies the management of projects whose sources are put under source control.
  • Activity - a set of tasks associated with a given purpose. When you begin working with the project, you'll notice that you'll create a new activity on one task but later associate another task with the same activity. This is best described as a means to intelligently associate related tasks (like "fixing typos on new sales pages") for tracking purposes.
  • Component - a group of related files and directories within your project. A project must contain at least one component, and it can contain multiple components. Projects can share components.
  • Baseline - records specific versions of every element (i.e. files and directories) that is contained within a component.
  • Rebase - the act of retrieving changes made to the current version of the project to work on locally, or to synchronize your workspace with changes that were made by the rest of your team.
  • Integration Stream - the version of a project that serves as the team repository - the area to which everyone on the team delivers the changes that they have made to the project.
  • Check in and check out - A file that is to be edited must be checked out in order to make it writable. This lets other developers know that the file is being changed by another developer. Once a developer completes edits on a file, the file must be checked back in before others can check it out to make further changes to it.
  • Deliver - an operation that developers perform to make their changes to the project available to the rest of the team.

Prerequisites

This tutorial is intended to introduce you to the basic functionality of using Rational ClearCase LT with WebSphere Studio to manage a project edited by multiple developers. You'll edit an existing J2EE application but don't concern yourself too much with the actual application. The sample source files are used only for the purpose to illustrate using Studio in a team environment.

To complete the steps in this tutorial,you need the following components:

  1. The Application Developer configuration of WebSphere Studio. This tutorial uses version 5.1.2.
  2. Rational ClearCase LT (bundled with Application Developer).
  3. The sample application goforit.ear. Save this file to C:\TEMP\StudioClearCaseTutorial\goforit.ear.

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=143085
TutorialTitle=Source code version control
publish-date=11232004
author1-email=sandeep@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.