ClearCase已应用给定标签类型的文件列表 [英] ClearCase list of files with given label type applied

查看:45
本文介绍了ClearCase已应用给定标签类型的文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前在一个项目上使用clearcase,并且存在一个用clearcase生成的HTML文件,其中包含标签中包含的文件的所有文件名。

We currently use clearcase on a project, and there is an HTML file that was generated with clearcase that contains all of the filenames of the files that were included in a label.

我应该用不同的标签生成该文件。我知道如何使用cleartool命令行获取标签中包含的所有文件名,但是这对生成文件没有帮助。我不想手动获取该列表并创建HTML文件。那么,如何创建此文件?

I am supposed to generate this file with a different label. I know how to get all of the filenames that were included in a label using the cleartool command line, but that doesn't help me with generating the file. I don't want to manually take that list and create the HTML file. So, how do I create this file?

我目前没有HTML文件的副本,但是我已经看到了。希望这个问题不会太混乱和太模糊。我对clearcase还是比较陌生,只是今天发现了一些cleartool命令,所以希望这是一个容易回答的问题。

I currently do not have a copy of the HTML file, but I have seen it. Hopefully this question isn't too confusing and too vague. I'm still relatively new to clearcase and just found out some of the cleartool commands today, so hopefully this is an easy question to answer.

推荐答案

我不确定您所指的确切HTML文件。您是否有其名称和内容示例?如果您使用这些数据编辑问题,我将能够添加到该答案中。

I am not sure about the exact HTML file you are referring to. Do you have an example of its name, and of its content? If you edit your question with those data, I will be able to add to this answer.

但是无论如何,如果该文件不是直接生成的通过ClearCase,解决方案仍然可以解析 cleartool find 命令(另请参见 cleartool find命令的其他示例文章)

But anyway, if that file is not generated directly by ClearCase, the solution remains to parse a cleartool find command (see also Additional examples of the cleartool find command article)

cleartool find . –version "lbtype(MY_LABEL-1.0)"

并例如使用以下命令构建html文件:

您甚至可以将此操作添加到ClearCase子菜单项中,如十个最佳脚本文章

and to build your html file with, for instance, a Perl script.
You could even add this action into a ClearCase sub-menu entry, like illustrated in the ten best scripts article.

这篇关于ClearCase已应用给定标签类型的文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆