You add resources to source control so that you can track
changes and share your work.
About this task
In this lesson, you will create a new directory and two
new files in the tutorial VOB and add them to source control.
To
create resources and add to source control:
Procedure
- In Windows Explorer or your IDE, add a directory named yourname_tutorial in
the tutorial VOB.
Note: You can also navigate to the VOB
in the ClearTeam Navigator, right-click on a blank space in the ClearTeam
Details view, and select .
- In the new directory, create a directory named docs.
- In the docs directory, create files
named readme.txt and notes.txt.
- In the Rational®
ClearTeam Explorer, connect to ClearCase® server, if you are not connected already. Expand
the My Views node in the ClearTeam Navigator, right-click on the view called
yourname_tut_view, and click
Connect. In the CCRC WAN Server dialog box, fill in the
connection details and click OK.
- In the ClearTeam Navigator, navigate to the docs directory
under the yourname_tutorial directory.
- In the ClearTeam Details view, right-click the notes.txt file
and click Add to Source Control.
Note: You can also select the file and click the

(
Add to Source Control) button in the
toolbar or you can select from the
ClearCase menu.
- In the Add to Source Control dialog
box, click the Show Details button (if it is
available), type a comment in the Comment field,
and click OK.
The notes.txt file
and its parent directories, docs and yourname_tutorial,
are added to source control. (A file cannot be added to source control
unless the directories above it are also under source control. In
this case, only the parent directory is added to source control.)
- In ClearTeam Details, right-click the readme.txt file
and click Add to Source Control.
- In the Add to Source Control dialog
box, type a comment and click Apply.
Results
Your tutorial folder, the docs directory, and the two text
files are now under source control. Note that the value of the
State field
in the ClearTeam Details view is now
Loaded instead
of
View Private.