Get ClearCase Snapshot snapshots through ClearCase Automation Library (CAL)?

Is ClearCase Automation Library (CAL) used successfully to capture snapshots? I can get all the dynamic views just fine, but none of my snapshot views appear in "Connection.get_Views (true, region);" team...

Is there a way to get this programmatically as instances of ICCView?

+1
source share
1 answer

What about:

Dim CC As New ClearCase.Application 
CC.Views(true, myRegionName)

, .
(: , , CAL)

, , ccperl script :

'ccperl listViews.pl', :

  • "listViewws.pl".
  • 'myRegionName' ClearCase
  • , script.

Script:

use Win32::OLE;
$DEBUG = 1;

print "Instantiating CAL CC\n" if $DEBUG;
my $cal_cc = Win32::OLE->new('ClearCase.Application')
or die "Could not create the ClearCase Application object\n";

$cclsview = $cal_cc->Views("False","myRegionName");
$Views_Entries = $cclsview->Count;
print "nbViews $Views_Entries\n";
$Views_Index = 1;
while ($Views_Index <= $Views_Entries) {
    print "Processing View entry $CS_Index\n" if $DEBUG;
    $View = $cclsview->Item($Views_Index);
    $ViewName = $View->TagName;
    $ViewIsSnapshot = $View->IsSnapShot;
    print "View $ViewName $ViewIsSnapshot\n";
    $Views_Index++;
}
+1

All Articles