It's all about the answers!

Ask a question

Loadrule to avoid extracting projects from certain components


Frank Herrmann (3115) | asked Mar 15 '19, 9:32 a.m.
I have several components in my stream and personal workspace. For a certain build I just need projects from a single component and would like to avoid extracting unnecessary files using a 'Component load rules:' file in the 'Request Build' dialog.
My loadrule content looks like this:
<scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" version="1">
<!--  INCLUDE Documentation component -->
    <parentLoadRule>
        <component name="Documentation"/>
        <parentFolder repositoryPath="/"/>
    </parentLoadRule>
<!--  EXCLUDE all other components -->
    <parentLoadRule>
        <component name="OtherComponent"/>
        <parentFolder repositoryPath="/"/>
<include><filter name=""/></include>
        <exclude><filter pattern="*"/></exclude>
    </parentLoadRule>
</scm:sourceControlLoadRule>
However, the projects from component OtherComponent are still extracted ?!
(Note that I do a personal build and that the workspace defined in the build definition in contrast to my personal workspace only contains the desired component, so that I cannot use the 'Components to exclude' in the build definition...)

How can I avoid extracting the projects from OtherComponent ?

Comments
Frank Herrmann commented Mar 15 '19, 12:27 p.m. | edited Mar 15 '19, 1:07 p.m.

comment deleted

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Mar 15 '19, 2:24 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
You need to be on RTC 6.0.5 to have the build only load the components defined in the Load Rule.

For an explanation of why this behavior is the way it is (prior to 6.0.5. that is), please read the comments in: Load workspace from load rules file, when performed by a build, needs to behave the same as in SCM (371621)
Frank Herrmann selected this answer as the correct answer

Comments
Frank Herrmann commented Mar 18 '19, 4:37 a.m.

Thanks! Our RTC is still on 6.0.4, so I requested an upgrade...

Your answer


Register or to post 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.