I want to compare the clearcase file with its previous version programmatically in C#.
Is there any way to invoke clearcase comparison window using C# CAL libraries for a file?
I want to compare the clearcase file with its previous version programmatically in C#.
Is there any way to invoke clearcase comparison window using C# CAL libraries for a file?
First, as illustrated in "How to call a VBScript file in a C# application?", it is best to wrap the cleartool diff call in a VB script and call that script from your C# program.
That would allow for your VB script to call a cleartool command, with the command diff --graphical
in it (which will open the diff windows)
ClearCase.ClearTool CT = new ClearCase.ClearTool();
string result;
result = CT.CmdExec("diff --graphical ...");
The OP Ramesh K comments:
The above
CmdExec
worked for me. I used:
ct.CmdExec("diff -graphical -pre "+filePath);
directly in C# application and it invokes the graphical interface of the ClearCase diff tool.