It's all about the answers!

Ask a question

Fetching details of files present in RTC

pravin Dakshin (133) | asked Jan 31 '19, 4:10 a.m.
edited Jan 31 '19, 4:42 a.m. by Ralph Schoon (61.4k33643)

 Hi All,

How can I get below details of files present in RTC as a report without loading the files.
File name, Version number, Checked in Timestamp, File size

I need the same for all the versions of the file in a project or a stream.

One answer

permanent link
Luca Martinucci (1.0k284109) | answered Jan 31 '19, 9:10 a.m.

If you are familiar with Plain Java API, you could leverage it to achieve your goal.

You should browse the change sets in a stream's history, retrieve the files modified in each change set and get the information you need.
I implemented a similar solution in order to retrieve the number of lines of code in a project over time, so I am confident that it can work for you too.

pravin Dakshin commented Mar 01 '19, 1:08 a.m. | edited Mar 01 '19, 4:17 p.m.

 I am not familiar with java API so if its possible can someone share a java snippet for this solution.

Your answer

Register or to post your answer.