It's all about the answers!

Ask a question

Get the components which has file extension in SCM


vinitha dsouza (14719119) | asked Feb 08 '22, 6:49 a.m.
Hello Team,

Usecase: i would like to get list of components of Streams which has selected file extension for eg: sbsx (rhapsody files)

Could you please some hints or idea how to achieve this?
either in SCM CLI /JRS or we shall develop using RTC API?

Thanks

Accepted answer


permanent link
Ralph Schoon (63.1k33645) | answered Feb 08 '22, 7:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 https://github.com/jazz-community/ewm-scm-utils provides the analyze* commands for that (only for the current state of a stream/workspace). analyzeScmRepository analyzes the whole repository. It runs as a single user and churns out some statistics, including the file extensions. The code is available and you can extend it. It has been used with customers for support purposes and to a small extend to analyze the file sizes and depth of nesting.


vinitha dsouza selected this answer as the correct answer

Comments
Ralph Schoon commented Feb 08 '22, 8:53 a.m. | edited Feb 08 '22, 8:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The tool is based on the EWM Java API. The SCM CLI would have to load files locally that you then would have to analyze for all I know. I do not know if reporting provides this information. You would have to dig into that. 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.