Connecting a Snapshot View to Clearcase in RAD 7.5 - clearcase

I need some help connecting my RAD 7.5 workspace to a ClearCase source-controlled snapshot view.
Here is what I have done so far.
Creating a stream of the code in ClearCase - Done.
Creating a dynamic view of the code in ClearCase - Done.
Checking all files into source - Done, every file is part of the "File Element Version" in ClearCase for this dynamic view.
Connect a Worspace to the Dynamic View - I don't know if this is necessary, but I have managed to do this. And no, I do not remember what I did exactly to make it connect to the source.
Create a snapshot view from the source - Done. In ClearCase Explorer, under "Exploring ClearCase Projects", I right-click to stream of my code and choose "Create View", then specifically select "create Dynamic View" and "Snapshot", then choose a local c:/ccviews/ folder for my source to be created in, then choose the source components to be loaded into that view.
Create a new workspace for this Snapshot View - Done.
Set up the Snapshot View for a ClearCase Connection Done, I open "Preferences" under the "Windows" Dropdown, expand "General", select "Capabilities", go to "Advanced Options", expand "Team", and make sure that UCM and SCM ClearCase Adapter are bot checkmarked.
Connect to ClearCase - Done.
Import the project - Done. I select "Import" from the File dropdown, expand "General", select "Existing Projects Into Workspace", select c:/ccviews/[Folder containing my project], check the "copy projects into workspace" box, and hit OK.
Run the migration tool - Done.
So with that all complete, I still cannot connect to my source. I KNOW that ClearCase is connected, and that I can connect a workspace to the source because my Dynamic View is connected to said source, but the Dynamic View is not ideal for the read/write testing that I need to do.
I can publish my code to a WAS7 server, but that wont' do me much good if I can't make changes to it. I've tried rebasing my stream but it wont' let me, nor will it let me do a deliver stream action.
So what now do I need to do to complete the connection of my workspace to my source?
As requested, here are pictures of my Eclipse workspace, and my Clearcase screen with .project and .classpath files shown.
Larger Size: http://i.imgur.com/J5WRPKq.png
Larger Size: http://i.imgur.com/4vCTQ55.png

What you can try is open your RAD with a different Eclipse workspace, and try and import your project (from the snapsphot view this time) in that new Eclipse workspace.
I would recommend also stopping the dynamic view (just to be on the safe side, even though both should be able to run together)
cleartool endview -server my_dynamic_view_tag

Related

can't change view tag or stream name in clearcase explorer in linux

I am not been able to change any parameters in clearcase GUI? Any suggestions how to fix it.
I want to give the view tag and stream name as I wanted but it is not allowing me to write or change anything in clearcase explorer.
A ClearCase Explorer is for the view, files and directories.
You cannot change the name of a view, through GUI.
You could follow the process describe in this IBM technote (rmtag, unregister, moving the view storage, register, mktag...).
But frankly, you would be better off creating a new one (with the same config spec, which means, for an UCM view, create a new UCM view referring to the same Stream)
A ClearCase Project Explorer is for all UCM metadata: pvobs, projects, streams, activity.
You cannot change an UCM name through the GUI (at least in 7.x, the ClearTeam 8.x interface could be more helpful).
But you can rename a stream easily enough through cleartool rename stream:aStream#\aPVob nameName.
However, I would then recommend to build a new view pointing on the new Stream (instead of resetting the config spec, with a cd /path/to/your/view; cleartool chstream --generate)

Browsing projects without creating views in ClearTeam Explorer for Rational ClearCase

My company has recently switched from using Perforce to Rational ClearCase for version control.
In the P4Win client it was possible to select View -> Entire Depot and browse depot files that were outside my client spec and this was useful for figuring out exactly what I needed to add to my client spec.
Significantly this avoided the need to synch the files from the depot before viewing them, and was therefore quicker.
I'm now using ClearTeam Explorer and can't seem to find an equivalent. I'd like to have this for a similar purpose, to figure out exactly what I need in the load rules for my snapshot view and also to decide what views I need to create.
Does anyone know if it is possible to view what files exist under a project in ClearTeam Explorer without first creating a view on the project / joining it?
ClearTeam Explorer is basically a trimmed down Eclipse with ClearCase specific plugins.
thanks.
The easiest way would be to create a dynamic view (you need to add -stream yourStream#\yourPvob to the mkview command, I know it looks like you "joining a project", but still, dynamic view are quick to setup).
The idea is to configure your config spec with the right selection rules (a dynamic view will display the files instantly), and then make your snapshot view with those same selection rules (and the appropriate load rules, specific to a snapshot view)
Note that, according to the CCRC wiki:
With the Release of v8.0, the ClearTeam Explorer is the common Eclipse UI client that supports MVFS on native clients, as well as webviews.
CM Server in 7.1.x was renamed to CCRC Wan Server in v8.
If you don't have cleartool installed, that means you are using webviews (which are snapshot views with web access to the CCRC Wan server).
In that case, there is no easy way to browse any code from any Baseline (other than joining a project)
FWIW now, wanted to suggest a different solution here.
I would create a web view on the stream with empty load rule.
This will ensure a faster view creation.
Then from ClearTeam Navigator menu, I will enable the options to show
Unloaded VOBs
Unloaded Elements
This will ensure that the unloaded elements chosen from my element rules are displayed in ClearTeam Details and ClearTeam Navigator.
Note: You need to be connected to the CCRC server to view the unloaded elements.
Then I can browse the file structure and decide which files needs to be added to my view's load rule.
Or I can just right click on any unloaded/partially loaded resource and select "Load Resource..." which will load the item to my view.

CCRC ClearCase Remote Client - Examining view configuration details

I'm using only CCRC - I don't have ClearCase locally installed.
I use CCRC Version: 7.1.1 Build id: 7.1.1.03.00_2010C.D100803
I'm working with a mature user of ClearCase - they have hundreds of work streams in a complex child parent relationship tree. When I create a view or stream CCRC offers me a picture of this complex tree and the location of my view (or stream if I'm creating a stream).
However, once my local view is set up there appears to be no mechanism for checking the location of any views. CCRC menus which 'show ClearCase view configuration' only show the load rules (i.e. which VOB's I'm currently selecting).
Another post to Stack Overflow tells me that '.ccase_wvreg' lists the local file paths where local copies of the files are stored. But '.ccase_wvreg' doesn't show the logical name of the views.
So how does CCRC find a map the logical view names and their configuration?
Is there another file I can examine (or other work around?) which would show me the complete view configuration.
The only workaround I have today (other than being incredibly careful and keeping png images of the stream as I set it up) is to commence the process of creating a new view or stream and retrace my steps.
Its surprising that being able to confirm the location of a view is so difficult - given what happens if one mistakenly checks in or deliver to the wrong stream!!
The CLI (Command Line Interface) for CCRC might be able to provide more information, espcially regarding the config spec of your view, in which there should be mentioned the name of the associated Stream.
catcs [-username user-name][-ser/ver server-url][-pas/sword user-password]\
[-tag view-tag]
But check first in the properties of the view. It can also include that information.

Newly created view not visible in ClearCase explorer: how can I see it?

I created a view using the ClearCase explorer.
But after its creation, the view is not visible in the listing of views within the explorer.
I tried closing the explorer and starting again. But no use...
What would you suggest?
I would recommend the following procedure:
open a DOS windows
goes to the root of your view ( c:\path\to\myView for snapshot views, M:\MyView for dynamic view)
type 'clearexplorer . (note the 'space-dot' after the clearexplorer command)
That should:
open your ClearCase explorer directly on the right view
add the right view shortcut
Sometimes ALBD service of the ClearCase doesnot start due to which you will not be able to view the clearcase views.
To solve this problem,
Go to control panel for windows machine and restart the clearcase services in ClearCase properties and try and check.
The views will be shown now.
my issue was resolved with going to the menu of ClearCase Explorer:
View > Refresh View Shortcuts (shortcut is ALT+F5)
None of the below seemed to work, I tried them all, they all seemed reasonable. I could see the new views and the associated drive letters in Windows Explorer but ClearCase Explorer DID NOT see the new view. So what I had to do was go to the ClearCase Explorer Views tab, right click and 'Add View Shortcut'. Select the correct View Type (Snapshot or Dynamic) and then select the correct View Tag and press OK. I did not need to select the correct page, it made a new one for the "new" view and it filled in the Drive Letter.
I had deleted a view thru ClearCase Explorer and tried to resurrect it which may of led me to this predicament.

How to search a file in eclipse clearcase?

I am using eclipse clearcase remote client. Everytime i wish to check out the file, i am going into the long branch.
Is there any way to find a file directly in the root like searching?
If you are using CCRC, you are using a snapshot view, which have an config spec specifying:
what you are selecting (this is the part you need to adjust to check out the right version in the right branch)
what you are loading on your disk.
As mentioned in this comparison matrix between CCRC and other ClearCase instances,
CCRC can only search the local copy area’s database for checkouts, hijacks, view privates.
I would recommend making a second CCRC web view, and make some tests on that view (with a small set of files loaded).

Resources