It's all about the answers!

Ask a question

Export a list with the full paths of the files/folders of a component in a snapshot considering a load rule file


Krasimir Malchev (56519) | asked May 17 '18, 7:29 a.m.
edited Jun 01 '18, 3:08 p.m. by David Lafreniere (4.7k7)

Environment:
Windows 7 x64 bit
RTC 6.0.4

Is there an RTC API, which extracts/exports the full path of each file/folder in a component from a snapshot applying/considering the specified file/folder paths in a given load rule file?

Input:
RTC repository URL address
Username and password
load rule file
component name(s)

Output: List with the component files/folders with their full paths extracted from the input load rule file.
             The files are grouped by component
             The output file format should be JSON / XML

One answer



permanent link
David Lafreniere (4.7k7) | answered Jun 01 '18, 3:06 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
There is no API or existing CLI command to do this (there has previously been no use case or need for this).
Best bet is to manually create a repository workspace from the desired snapshot, then load the repository workspace from the load rule. Then write some script to gather the filenames/paths of the loaded file tree on disk.

Your answer


Register or to post your answer.