Powershell to do Clearcase checkin ,checkout,find command?

How to do check-in /check-out /Find and etc operation in Clearcase UCM using powershell.

Is there any way custom cmd-lets are available for this?

Answers


For more advanced functionality and better response times, I'd recommend accessing the CAL API directly via COM. The best documentation for that is available locally in <ClearCase install dir>\bin\cc_cal.chm.

$cc = New-Object -COM ClearCase.Application
$ccItem = $cc.Version("<absolute path to file/dir>")
$coItem = $ccItem.CheckOut($cc.ccReservedState,"",$false,$cc.Latest,$false,$false)
Write-Output $coItem.IsReserved

You can find an example in this IBM bug report, where you would use in your Powershell session the CAL API (ClearCase Automation Library)

PS C:\temp> $ct = new-object -com ClearCase.ClearTool
PS C:\temp> $ct.CmdExec('checkout -nc aFile')

Or, as in this thread, you would use directly cleartool.

In both cases, you will need to make sure the view in which you are doing the checkout/checkin operation as an UCM activity set (cleartool lsact -cact -cview should return an activity name, if done within the view).


Need Your Help

Network on Main Thread exception while trying to send e-mails in Android without user intervention

java android networkonmainthread

I tried to implement the sending of emails without user intervention as explained in a post that's open for this issue:

How to implement multiple background image effect in IE8 +GWT

css internet-explorer gwt

I want multiple background image effect in IE 8 , Is it possible or is there any alternative way to apply on element.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.