Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Loadrule to avoid extracting projects from certain components

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 ?

0 votes

Comments

comment deleted


Accepted answer

Permanent link
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

0 votes

Comments

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 15 '19, 9:32 a.m.

Question was seen: 1,367 times

Last updated: Mar 18 '19, 4:37 a.m.

Related questions
Confirmation Cancel Confirm