Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to programatically retrieve all repository file names of a component

Hello All,

Is it possible to get the repository file names of the component? from the below code I can only get the folder name. Can't get the child entries from that folder (Here i use SCM Java API)

    IConfiguration compConfig = workspaceConnection.configuration(compHandle);
    Map<String, IVersionableHandle> projectFolders = compConfig.childEntriesForRoot(null);
                       
    List<IVersionable> items = compConfig.fetchCompleteItems(new ArrayList<IVersionableHandle>        (projectFolders.values()), null);

Here, "items" returns only the folder name (like .rtcmetadata, Src) cant get child entries from the folder.

Please help me in this situation.

Thank you.

0 votes


Accepted answer

Permanent link
The returned items should have the correct subtype, such as IFolder. If it is an IFolder then you should be able to compute the children using compConfig.childEntries().

I hope that this helps,
Chris
David Lafreniere selected this answer as the correct answer

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 1,202
× 411

Question asked: Aug 11 '15, 1:25 a.m.

Question was seen: 3,638 times

Last updated: May 24 '16, 9:44 p.m.

Confirmation Cancel Confirm