ClearCase list of files with given label type applied
Asked Answered
A

2

6

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.

Atc answered 17/8, 2009 at 19:15 Comment(5)
Any news about that HTML file name and content? That would allow me to check if I have already seen that kind of file before.Disagreeable
It looks like it was produced by a report. I need to get the source mapped correctly using clearcase to see if I can run this report.Atc
Ok. I remain available for any further details on that file, and will add specifics details to my answer then.Disagreeable
Would this ( www-01.ibm.com/support/… ) helps with your report builder visibility issue?Disagreeable
I had to remove every other reference to perl other than clearcases to get it to work. Hopefully other things don't break.Atc
D
8

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.

Disagreeable answered 17/8, 2009 at 19:39 Comment(1)
The cleartool works perfectly, unfortunately I can't get the report builder to show any options for reporting. It has something to do with my perl configuration, but I can't seem to figure out what is wrong with it.Atc
E
1

What you might be looking for is Report Builder (also known in ClearCase Explorer as Report Wizard). In Report Builder you can navigate to Elements/Labels which has the "Elements with Labels" and "Versions with Labels" reports. After the report runs you have the option to save the results as HTML, XML, or CSV.

Engage answered 17/3, 2010 at 17:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.