using load rules with multiple components with identical top level folder
![](http://jazz.net/_images/myphoto/e4dd0c72f52dab5eef5b9c85ac484eb3.jpg)
I have gone through article https://jazz.net/library/article/1016 but cant seem to get the load rules working for my requirements. Trying to generate load from GUI sandbox does seem to work either as RTC complains of name clash of top-folders with the same name that are stored in different unique root component names. Basically I have three components with identical top-level directory structure as illustrated below:
compA
-test
-docs
-build
-rel
-dev
compB
-test
-docs
-build
-rel
-dev
compC
-test
-docs
-build
-rel
-dev
Is it possible to generate a single load rule file that includes all above 3 components loaded (inclusive of component names) as root in a sandbox together with selective top-level folders in each component. For example:
compA
-test
compB
-test
compC
-test
My sandbox content on disk would look like this;
c:/myrtcsandbox/compA/test
c:/myrtcsandbox/compB/test
c:/myrtcsandbox/compC/test
If someone can share load rule syntax for above requirement that would be fantastic
One answer
![](http://jazz.net/_images/myphoto/e4dd0c72f52dab5eef5b9c85ac484eb3.jpg)
You can try the following steps to generate the load rules:
1. Create a sandbox with the structure using "scm load" command lines:
scm load -t compA <workspace-name> /compA/test
scm load -t compB <workspace-name> /compB/test
scm load -t compC <workspace-name> /compC/test
2. Launch RTC Eclipse client, add the sandbox created in step 1 from "Preference > Team > Jazz Source Control > Sandbox".
3. Generate the load rule file from the sandbox.
The load rule file looks like below:
<scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" version="1">
<itemLoadRule>
<component name="CompB"/>
<!-- <component itemId="_JaSZUPj8EeaSn7FJ78SmtA" /> -->
<item repositoryPath="/test"/>
<!-- <item itemType="folder" itemId="_4-vscAksEeefHohNu-vH7A" /> -->
<sandboxRelativePath pathPrefix="/CompB"/>
</itemLoadRule>
<itemLoadRule>
<component name="CompA"/>
<!-- <component itemId="_JGi98Pj8EeaSn7FJ78SmtA" /> -->
<item repositoryPath="/test"/>
<!-- <item itemType="folder" itemId="_GYeesfi7Eeadbpy4WDVqwA" /> -->
<sandboxRelativePath pathPrefix="/CompA"/>
</itemLoadRule>
</scm:sourceControlLoadRule>