It's all about the answers!

Ask a question

need to find file...


Sumit Singh Tomar (266) | asked Aug 07 '14, 5:56 a.m.
 Hi All, 

We have one requirnment...

we have around 100+ components...

components contain one file end with .serviceagent..

now requirement is we have to find list of service agent for each and every components. 

can we have optimize way so that it can take less time to process....

Thanks,
Sumit


One answer



permanent link
Winston Enos (33116) | answered Aug 07 '14, 2:35 p.m.
edited Aug 08 '14, 3:06 a.m. by Krzysztof Kaźmierczyk (7.5k480103)
Sumit,

From Eclipse, if you select 'Search' -> 'Jazz Source Control' -> 'Change Sets' you can fill out a query to search all components, by date if you want, that modifies a particular file resource (or by name), and what the change-set did to it (added it, deleted it, modified it, etc..)

The way to do it via command-line (CLI) would be to use 'scm.exe list remotefiles' to generate a listing of all the repository files within a component within the context of a stream or workspace: http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m5/topic/com.ibm.team.scm.doc/topics/list_remotefiles.html

However, that CLI call is very expensive, especially if you have 100+ components. I'm not sure why your requirement is written so, but it may be faster to just have a Jenkins job maintain a loaded workspace of the latest of all the 100+ components and do a filesystem search, then return the results.

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.