How to use RTC load rule excludeFilter
Hi - I have a component that has directories like this:
root/fred/A/.. root/fred/B/.. root/fred/C/.. I'd like to load just /root/fred/A/.. in an eclipse workspace, that is - I want everything except root/fred/B/* and root/fred/C/*. I've tried this: <scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" eclipseProjectOptions="import" version="1"> <excludeFilter> <filter name="root/fred/B" /> <filter name="root/fred/C" /> </excludeFilter> <parentLoadRule> <component name="C1"/> <parentFolder repositoryPath="/"/> <sandboxRelativePath includeRepositoryPath="true"/> </parentLoadRule> </scm:sourceControlLoadRule> It just loads everything. Is there a way to do what I want? It looks as though excludeFilter should work (from this: https://jazz.net/library/article/1015) so I think I probably have the syntax wrong. Does anyone have an example? I'm using the RTC V5.0 client. Thanks, Zoe |
One answer
I believe the <excludefilter> considers only file or folder names. Your loadrule file is using a path instead. The filters "root/fred/B" and "root/fred/C" would not match any name and that is why everything is being loaded. Comments
Zoe Slattery
commented Dec 11 '15, 5:00 a.m.
So, if I had 100 folders and I wanted to load 98 and exclude 2, the only way to do this would be to list all 98 as items?
I can see that the other possibility is to put the ones that I don't want into another component but I was hoping to find a solution without doing this.
In that case, you may have to specify the parent folder first using <parentFolder> tag -
|
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.