How to get the file items from the component's baseline part of a Snapshot programatically ?
![]()
Jazzuser user (68●10●50)
| asked May 22 '18, 12:38 a.m.
edited Jun 01 '18, 2:41 p.m. by David Lafreniere (4.8k●7) Hello All,
|
One answer
![]()
Instead of inspecting the change sets to get the files, you can get the baseline configuration (which is basically the full folder/file tree at the time the baseline was created)
See:
IConfiguration configuration = IBaselineConnection.configuration()
You can then traverse the file tree using:
configuration.childEntriesForRoot(IProgressMonitor monitor)
and recursive calls of:
configuration.childEntries(List folderHandles, IProgressMonitor monitor) |
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.