Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
349 views
in Technique[技术] by (71.8m points)

report - ClearCase list of files with given label type applied

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.

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?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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)"

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...