load rule exception occur
Tifa Tan (18●3●5)
| asked Sep 04 '14, 5:47 a.m.
edited Sep 04 '14, 5:55 a.m. by Ralph Schoon (63.4k●3●36●46) 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"?>
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? |
One answer
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> |
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.
Comments
Hi,