Get owner / creator visions using the Rational ClearCase Automation Library (CAL)

Has anyone already worked with Rational / IBM CAL and know, if at all, and how to check the creator / owner of the view (username)? Elements, Vobs, etc. Have an owner / creator, but for some reason there are no views?

+1
source share
2 answers

I only have small VB scripts with CAL, as illustrated in this shortcut answer .

After checking cc_cal.chm (found in C: \ Program Files \ IBM, in the latest ClearCase installation version 7.1.0.1), I found that their ICCView interface ICCView very incomplete and always prefers fixing the classic output:

 cleartool lsview -l -full -pro aTagViewName 

With this outlet, I will definitely find any information that I need.


The only other way for a “pure CAL” to get some views for a given username is for UCM views, where you can request a stream for them (but this does not directly concern your question)

  Dim Streams As CCStreams Dim Stream As CCStream Set Streams = Project.DevelopmentStreams(Name) For Each Stream In Streams Dim Views As CCViews Set Views = Stream.Views(Name) Dim View As CCView For Each View In Views Str = Str & View.TagName & " in stream: " & _ Stream.Title & vbCrLf Next Next 
+1
source

Basically, if you can come up with a way to do this with cleartool, then yes. If any specific API of the interface / object does not fit, just create a cleartool object in CAL and submit your request to it!

The advantage of using CAL is that you only need to load the DLL once and you do not have to pay the price to execute zillion separate cleartool processes if that is what you would otherwise have to do.

CAL documentation sucks. In Visual Studio, you can add CAL as a resource by finding a DLL in your resource explorer and talk to it through COM, like everything else.

If you are not using VB or VB.NET (for example, C #), you will need to make a few more types than you see in the sample documentation.

0
source

All Articles