24
1 IBM Software Group ® Essentials of Rational ClearCase Appendix A: Using Rational ClearCase Within WebSphere Studio Application Developer 

Rs501g App

  • Upload
    mnreddy

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Rs501g App

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 

Page 2: Rs501g App

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 

Page 3: Rs501g App

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.

Page 4: Rs501g App

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.

Page 5: Rs501g App

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.

Page 6: Rs501g App

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

Page 7: Rs501g App

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.

Page 8: Rs501g App

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

Page 9: Rs501g App

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.

Page 10: Rs501g App

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.

Page 11: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 11/24

11

Accessing ClearCase Functions

ClearCase

Toolbar 

Page 12: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 12/24

Page 13: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 13/24

Page 14: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 14/24

Page 15: Rs501g App

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.

Page 16: Rs501g App

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.

Page 17: Rs501g App

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.

Page 18: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 18/24

Page 19: Rs501g App

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 .

Page 20: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 20/24

Page 21: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 21/24

21

Accessing Help

Help > Help Contents > Rational ClearCase

Page 22: Rs501g App

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?

Page 23: Rs501g App

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 

Page 24: Rs501g App

8/14/2019 Rs501g App

http://slidepdf.com/reader/full/rs501g-app 24/24