How to list files in a changeSet via RTC-SDK api
silencehill wu (50●2●27●32)
| asked Nov 05 '12, 3:40 a.m.
edited Nov 05 '12, 6:45 a.m. by Ralph Schoon (63.3k●3●36●46)
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.
testfolder/src/test
How can I get the full path string list via RTC-SDK java API list like below:
testfolder/src/test/folder1
Please help me! Thanks!How to list files in a changeSet via RTC-SDK api |
3 answers
Hi,
You may find the following forum post helpful: https://jazz.net/forum/questions/49910/how-to-get-an-iconfiguration-from-ichangeset Comments
praveen patidar
commented Nov 08 '12, 9:39 p.m.
Hello Lauren,
1
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? I'm not sure how. Hopefully Ralph or someone else does.
|
Ralph Schoon (63.3k●3●36●46)
| answered Nov 09 '12, 3:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Have you looked here: https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExampleThe it has a method toFullPath(). Maybe that helps.
Comments
Fatla 777
commented Feb 20 '13, 7:11 p.m.
Did you figure out a solution for your issue?
|
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? Comments
praveen patidar
commented Mar 04 '14, 8:38 p.m.
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
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.