How to load the repository workspace using load rule programatically??
Hello team
|
One answer
Shashikant Padur (4.3k●2●7)
| answered Jun 12 '17, 11:21 p.m.
JAZZ DEVELOPER edited Jun 12 '17, 11:25 p.m. You have to do the following
1) ILoadRuleFactory.getLoadRule(...)
2) ILoadRule2.getLoadOp(...)
3) ILoadOperation.run()
You could also use the scm command line to load using the load rule by running "scm load <workspace> --remote-rules <loadrulefile> or --local-rules <loadrulefile>". Run "scm help load" for more information.
Comments
vinitha dsouza
commented Jun 13 '17, 4:39 a.m.
Hi ,i used the below code :
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 14.0px 'Helvetica Neue'; color: #333333; -webkit-text-stroke: #333333} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 14.0px 'Helvetica Neue'; color: #333333; -webkit-text-stroke: #333333; min-height: 16.0px} span.s1 {font-kerning: none} </style> A bit of googling I found this link: https://stackoverflow.com/questions/23011547/webservice-client-generation-error-with-jdk8 Try out one of the solutions and see if it works.
By the way, you should check ILoadRuleFactory.isXMLLoadRule(xmlReader) and if it returns true then call ILoadRuleFactory.getLoadRule(wsConn, xmlReader, monitor). Also I see that you are passing a "StreamName" to the getLoadRule method but it should be a IWorkspaceConnection.
vijayakumar ramesh
commented Mar 30 '22, 10:42 a.m.
Hello Shashikant,
I am also gettign same error as above mentioned user but it is not solved even after placing ,
Create a file named
|
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.