Querying RTC SCM data with wildcard characters and regular expressions
Trying to fetch only components,baselines matching the searched name pattern in a repository via RTC Plain Java API.
Didn't find any direct API to find components using wildcard character and regular expressions eg:- [ *_comp ] , *_comp* etc. Always a code should fetch “n” number of components using methods inside WorkspaceManager and then apply additional logic to filter the searched result. Is there any other mechanism or data source available using which we can query RTC SCM data to fetch the desired result directly ?. |
Accepted answer
Shashikant Padur (4.3k●2●7)
| answered Jun 10 '16, 2:56 a.m.
JAZZ DEVELOPER edited Jun 10 '16, 2:59 a.m.
I suggested the % and _ to be tried on pre 601 client. Since you are on 601 you can ignore that comment.
From what you have listed... isn't * and ? working as expected unless I am missing something obvious.
Sagar U selected this answer as the correct answer
Comments
Sagar U
commented Jun 10 '16, 7:43 a.m.
Ok , thank you for the clarification.
|
One other answer
Which version of the client SDK are you using?
I believe pre 601 it matched all components starting with the provided name and did not consider wild card characters such as '*' or '?'. Can you try using '%' instead of '*' and '_' instead of '?'.
Comments
Sagar U
commented Jun 10 '16, 2:45 a.m.
We are using Verison 6.0.1.ifix003
|
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.