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

RTC Load Rule

HI RTC SME,

I was wondering how could I load a single file into my workspace using the load rule.

The one below is the default load rule, which part should i change to load a singe file?

<itemLoadRule alternateName="Component_Dev">
        <component itemId="_7_5EoG8sEeSyEtkCdfURrw"/>
        <!-- <component name="Component_Dev" /> -->
        <item itemId="_7_5EpG8sEeSyEtkCdfURrw" itemType="folder"/>
        <!-- <item repositoryPath="/" /> -->
    </itemLoadRule>

Sample /zOSsrc/<folder>/<file>.<file ext>

0 votes



One answer

Permanent link
The easiest way to generate a load rule is to use the Eclipse client to load the desired file (from the Repository Files view), and then generate the load rule from Window->Preferences->Sandboxes .   In particular, it is usually best to use the UUID form of the load rule, and this will obtain the right UUID for you.

0 votes

Comments

Hi Geoffrey,

The load rule above is got by using the steps you provided.

I'm asking how to modify it to make it load just a single file in the whole component.

Regards

I believe the load rule generator tries to be "helpful", and if you load a file that is the only member of a given directory, it will generate a load rule for that directory (which implicitly will load that file).  If you have more than one file in the directory, it will generate a "single item" load rule, such as:
       <itemLoadRule>
        <component itemId="_IjMtQs3tEeSGvqgXard3bQ"/>
        <!-- <component name="compa" /> -->
        <item itemId="_KctzoM3tEeSDEuF6atP6iA" itemType="file"/>
        <!-- <item repositoryPath="/projp/barp.txt" /> -->
        <sandboxRelativePath includeRepositoryPath="true"/>
    </itemLoadRule>

how to generate a load rule  for a directory, its just create for the whole component. There is no option to go deeper.

I don't understand this comment.   Are you asking whether you can create a load rule for a directory?   If so, the answer is yes, and the load rule you originally posted is an example of such a load rule.   The component itemId needs to be specified in the load rule because folders with the same ItemId can appear in multiple components.

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
× 6,125

Question asked: Apr 06 '15, 9:43 a.m.

Question was seen: 4,358 times

Last updated: Apr 06 '15, 5:41 p.m.

Confirmation Cancel Confirm