8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 1/24
1
IBM Software Group
®
Essentials of Rational ClearCase
Appendix A: Using Rational ClearCase WithinWebSphere Studio Application Developer
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 2/24
2
Objectives
When you complete this module, you should be able to:
Set up your WebSphere Studio Application Developer andClearCase work area
Create or import projects under ClearCase control inApplication Developer
Perform ClearCase functions from within ApplicationDeveloper
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 3/24
3
:View
• A view is a ClearCase
mechanism that lets you
access particular versions of elements in a
VOB.
ClearCaseWebSphere
Studio
• Views offer alternative
presentations of
information in your workbench.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 4/24
4
:Project
• A project is a UCM
object that contains
configurations andpolicies relating to a
development effort.
ClearCaseWebSphere
Studio• A project is the top level
of organization of your
resources in theworkbench.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 5/24
5
:Workspace
• The workspace in base
ClearCase is a
ClearCase view.• The workspace in
ClearCase UCM is an
isolated work area that
includes a developmentview and a development
stream.
ClearCaseWebSphere
Studio
• The workspace is the
collection of projects and
resources you arecurrently developing in
the workbench.
• Contains metadata that
describe resources inthe workspace.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 6/24
6
Workflow
Work on files within
Application Developer
Integrate changes
Set up work area
• Create a ClearCase view
• Create a WebSphere
Studio workspace
Create or import aWebSphere Studio project
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 7/247
Create a ClearCase View
In ClearCase Explorer,create a view for your development work.
For snapshot view,select elements to loadinto the view.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 8/24
8
Workspace WebSphere Studio workspace stores project metadata
Maintain a separate WebSphere Studio workspace for eachClearCase view that you use
Include the view name (view tag) in the directory name of theWebSphere Studio workspace
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 9/24
9
Control
1
Select the type of project to create.
File > New > Project
3
Clear the Use default check boxand place the project in adirectory under a ClearCaseVOB root directory, within aClearCase view.
2
Name the project.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 10/24
10
Control (cont.)
4
When prompted, click OK
to add elements tosource control.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 11/24
11
Accessing ClearCase Functions
ClearCase
Toolbar
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 12/24
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 13/24
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 14/24
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 15/24
15
Work on Files: Add New File
When you create new files anddirectories within a source
controlled project, ClearCaseprompts you to add them tosource control.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 16/24
16
:In
By default, ClearCase
prompts you to check out
any file you try to edit
without first checking it out.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 17/24
17
Work on Files: Refactoring
To rename Host.java to HostData.java, clickFile > Refactor > Rename.
ClearCaseautomaticallychecks out thefiles that arechanged.
ClearCase automaticallyupdates references to
the renamed class.
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 18/24
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 19/24
19
Integrate Your Changes
To merge your changes,click ClearCase > Run
Merge Manager .
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 20/24
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 21/24
21
Accessing Help
Help > Help Contents > Rational ClearCase
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 22/24
22
Module Review
1. What is the recommended relationship between WebSphereStudio workspaces and ClearCase views?
2. In Application Developer, how do you create a new projectthat is under ClearCase control?
3. In Application Developer, what happens when you try to edit
a file under ClearCase source control without first checkingit out?
4. How can you change the default behavior of ClearCase inApplication Developer to automatically check in parent
directories of renamed files?
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 23/24
23
Lab
In this lab, you will create a WebSphereStudio project that is under ClearCase controland perform ClearCase tasks from withinWebSphere Studio Application Developer
8/14/2019 Rs501g App
http://slidepdf.com/reader/full/rs501g-app 24/24