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

How to list files in a changeSet via RTC-SDK api


I am using RTC-SDK writing a OperationAdvisor to extends RTC.

I have a problem. I want to list all file name include folder in a changeset.

Now:  I have IChangeSet, How can I get all file lists in this changeset via RTC-SDK API.


for example:
I diliver a changeset, in the project, I add a fold1 package and a AAA.java file. It display like below:

testfolder/src/test
       folder1
testfolder/src/test/folder1
      AAA.java

How can I get the full path string list via RTC-SDK java API  list like below:

testfolder/src/test/folder1
testfolder/src/test/folder1/AAA.java

Please help me! Thanks!How to list files in a changeSet via RTC-SDK api

1 vote



3 answers

Permanent link
Hi,
You may find the following forum post helpful: https://jazz.net/forum/questions/49910/how-to-get-an-iconfiguration-from-ichangeset

1 vote

Comments

Hello Lauren,

I have same issue but not able to find the answer. Please see the post https://jazz.net/forum/questions/93557/how-get-full-path-of-the-file-from-changeset-using-api for the API I used to get the name of the files. I am able to get the name of the files but not sure how to get the full path as mentioned above.

I use toFullPath API,

But I found a problem, only modified or deleted files show full path. And files new added only can get file name without path. how can I get get full file path of added files?

1 vote

I'm not sure how.  Hopefully Ralph or someone else does.


Permanent link
Have you looked here: https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExampleThe it has a method toFullPath(). Maybe that helps.

0 votes

Comments

Did you figure out a solution for your issue?
Please share I have the same situation.


Permanent link

Yes,  I use the code in the program.

But I found a problem, only modified or deleted files show full path. And files new added only can get file name without path, can you tell me how to get full file path of added files?

0 votes

Comments

I guess this is other way around. I am able to get the full path of the file is its added or modified. For deleted files I am not able to get the path. 


I guess here is the catch : If file is deleted then search the path in the target stream conn else search in the source stream conn. 

Let me know the Result. if you try that. I am using the source stream conn so I am able to get the path for the added and modified files. 

Thanks 

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,947
× 17

Question asked: Nov 05 '12, 3:40 a.m.

Question was seen: 8,646 times

Last updated: Mar 04 '14, 8:45 p.m.

Confirmation Cancel Confirm