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

load rule exception occur

Hi, I used ILoadRule2 rule = ILoadRuleFactory.loadRuleFactory.getLoadRule(workspaceConnection, xmlReader, monitor); to load the projects,

loadruls file such as:

<?xml version="1.0" encoding="UTF-8"?>
<scm:SourceControlLoadRule xmlns:scm="http://com.ibm.team.scm"  eclipseProjectOptions="import" version="1">
    <itemLoadRule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/"/>
    </itemLoadRule>
</scm:SourceControlLoadRule>

but when I run the load program, an exception throw:

com.ibm.team.filesystem.client.FileSystemException: Error parsing load rule: cvc-elt.1: Cannot find the declaration of element 'scm:SourceControlLoadRule'. May I know what made this Exception occur?

0 votes

Comments

Hi,

I'm also facing the same Issue. Has the issue been resolved. If so could you please let me know the solution



One answer

Permanent link
Your load rules do not specify what to load - the root of the component or a folder in the component. try one of these -
(To load the root of the component)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item itemId="uuid of the component" itemType="folder"/>
</itemloadrule>

(To load a path in the component. This will not remember the repository path)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/path1/path2/filename" />
</itemloadrule>

(To load a path in the component but also remember the repository path)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/path1/path2/filename" />
        < sandboxRelativePath includeRepositoryPath="true"/>
</itemloadrule>


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
× 10,937
× 169

Question asked: Sep 04 '14, 5:47 a.m.

Question was seen: 6,281 times

Last updated: Apr 20 '15, 8:01 p.m.

Confirmation Cancel Confirm