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

Load rule: exclude sub folders

Hello everyone,

we are currently trying to exclude a sub folder in a component from being loaded. In the load rule, we are using the parentLoadRule with exclude and filter elements below. This works fine when excluding elements in the root folder of the component, but we cannot exclude only specific sub folders.

For example, we have the following structure in the component:
- Test
- Test\A
- Test\B
We would like to only exclude "Test\B".

Is this possible at all? The documentation seems to hint into this direction: "[...] filtering to control which of the immediately contained items should be loaded [...]"

I appreciate any input or advice on this topic!

1

0 votes



2 answers

Permanent link
Hi Alex,

you can use "Parent Load Rule" and "Exclude filter"

..."

exclude

The exclude element is a collection of filter elements to be applied to the names of the items contained within the parent folder to decide whether they should be in the list of items to be loaded or not. Note the include filters are also applied (if specified) so if the include filters does not identify an item to be considered for loading, then it will also be excluded even though not specifically listed in the exclude filters. The filter allows for an exact name match or a pattern match on the name.

..."


0 votes

Comments

When I use Parent load rule and exclude filter , it is not filtering the files inside the sub folders. It just filters the files at the top level/root directory of component.


Permanent link

 Hello Alexander,


you can achieve this like the following:

(optional)
<parentLoadRule>
        <component name="Component/>
<parentFolder repositoryPath="/"/>
    <exclude>
            <filter pattern="Test"/>
        </exclude>
        <sandboxRelativePath pathPrefix="/Component/"/>
    </parentLoadRule>

(mandatory)
<parentLoadRule>
        <component name="Component/>
<parentFolder repositoryPath="/Test/"/>
    <exclude>
            <filter pattern="B"/>
        </exclude>
        <sandboxRelativePath pathPrefix="/Component/Test/"/>
    </parentLoadRule>

0 votes

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
× 12,019

Question asked: Jun 23 '16, 9:58 a.m.

Question was seen: 3,711 times

Last updated: Feb 11 '20, 9:00 a.m.

Confirmation Cancel Confirm