I am writing a program that needs to know whether a file (excel workbook) is in clearcase or not. If so I need to check it out.
Here is my code for checking out a file:
private void buttonClicked(object sender, RibbonControlEventArgs e)
{
ClearCase.ClearTool checkingOut = new ClearCase.ClearTool();
string fileLoc = Globals.ThisAddIn.Application.ActiveWorkbook.FullName;
checkingOut.CmdExec(@"checkout """ + fileLoc + @"""");
}
I do not want to perform the checkout unless I know if it is in Clearcase or not.
This is part of an Excel add-in.
Thank You!
The simplest way to know if a file is in ClearCase is to perform a
cleartool ls aFile(ct.CmdExec("ls aFile");with the CAL API)See the
cleartool lsman page:Here
bug.reportisn’t in ClearCase yet: it has no selection rule associated to it.