使用 Rational ClearCase Automation Library (CAL) 获取视图所有者/创建者
这里是否有人已经使用过 Rational / IBM CAL,并且知道是否有,以及如何检查视图的创建者/所有者(用户名)? 元素、Vobs 等都有一个所有者/创建者,但由于某种原因视图没有?
Has anyone here already worked with the Rational / IBM CAL and knows if at all, and how to check for a view's creator/owner (username)? Elements, Vobs etc all have an Owner/Creator, but for some reason views do not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我只使用 CAL 执行小型 VB 脚本,如 此答案中对标签进行了说明。
检查了 cc_cal.chm(位于 C:\Program Files\IBM,在最新的 7.1.0.1 版本的 ClearCase 安装中)后,我发现他们的 ICCView 界面非常不完整,并且总是喜欢修补经典的输出:
有了这个输出,我一定能找到我需要的任何信息。
获取给定用户名的一些视图的唯一其他“纯 CAL”方法是 UCM 视图,您可以在其中向流询问这些视图(但这并不能直接解决您的问题)
I have only do small VB scripts with CAL, as illustrated in this answer about label.
After having checked cc_cal.chm (found in C:\Program Files\IBM, in the latest 7.1.0.1 version of ClearCase installation), I have found their
ICCView
interface very incomplete, and always prefered to patch the output of a classic:With that output, I am sure to find whatever information I need.
The only other "pure CAL" way to get some views for a given username is for UCM views, where you can ask the stream for those (but that does not address directly your question)
基本上,如果你能想出一种方法来使用cleartool来做到这一点,那么答案是肯定的。 如果没有特定的接口/对象 API 来执行您想要的操作,只需在 CAL 中创建cleartool 对象并将您的查询填充到其中即可!
使用 CAL 的优点是您只需加载 .dll 一次,并且不必付出执行无数个单独的 Cleartool 进程的代价(如果您本来必须这样做的话)。
不过,CAL 文档很糟糕。 在 Visual Studio 中,您可以通过在资源浏览器中查找 DLL 将 CAL 添加为资源,并像其他任何操作一样通过 COM 与它对话。
如果您不使用 VB 或 VB.NET(例如 C#),则必须进行比示例文档中看到的更多的类型转换。
Basically, if you can think of a way to do it with cleartool, the answer is yes. If there isn't a specific interface/object API to do what you want, just create the cleartool object in CAL and stuff your query in there!
The advantage to using CAL is that you only need to load the .dll once, and don't have to pay the price of executing a zillion separate cleartool processes if that's what you'd otherwise have to do.
The CAL documentation sucks, though. In Visual Studio, you can add CAL as a resource by finding the DLL in your resource explorer, and talk to it via COM like anything else.
If you aren't using VB or VB.NET (e.g. C#), you'll have to do a little more type-casting than you see in the sample documentation.