It's all about the answers!

Ask a question

How to get Repository files Path information?


Surya Raj (17116) | asked Sep 07 '15, 12:24 a.m.
Hello,
As im using java API for my standlaone application. There is an situation where we need to get Parent path for the repository files.For eg,
component_name -> repository_files -> src -> file1.c
,

with '
file1.c' as child I need to get its parent path ( i.e. component_name/repository_files/src ). Is there any function in Jazz RTC to retrieve those information.

I tried all my efforts but can't meet the need.Kindly help me out.

Thanks in advance..

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Sep 07 '15, 5:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is not enough information, however similar questions have been asked here already.

https://www.google.com/search?q=get+parent+name+scm+site:jazz.net

https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/ has code that, on a repository workspace, tries to locate a file, but in this case the parent name(s) are clear. In your case it is absolutely unclear what type of object you have and thus there is no way to tell you how, assuming one would know this.

Your answer


Register or to post your answer.