It's all about the answers!

Ask a question

Automating RSA DM import from RTC


behnam Tehrani (2678) | asked Apr 23 '12, 12:59 a.m.
Hi,
I was trying to follow the article on https://jazz.net/library/article/718 , but when i try to import it gives me this error
The provided ant script path "/u01/IBM/rtc_extraction_ant_script.xml" does not refer to a valid ant script 

this is what i did:
1- the ant script that i used is the same that is attached in the article which is
https://jazz.net/library/content/articles/dm/3.0/rsa-dm-imports-rtc/attachment/rtc_extraction_ant_script.xml
(i just modified the values)

2- i tried to validate the ant script using

ant -f rtc_extraction_ant_script.xml -lib <RTC_BUILDTOOLKIT_INSTALL_ROOT>\buildsystem\buildtoolkit

or
java org.apache.tools.ant.launch.Launcher f <PATH_TO_THIS_SCRIPT>\rtc_extraction_ant_script.xml -lib <RTC_BUILDTOOLKIT_INSTALL_ROOT>\buildsystem\buildtoolkit

but executing with ant gives me

taskdef A class needed by class com.ibm.team.build.ant.task.TeamAcceptTask cannot be found: org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList

and executing with java gives me classNotFoundException
All I'm trying to do is integrating RSA DM with RTC and have a change management on RSA models. both product versions are 3.0.1.2 (RJF-I20111207-1350). the build system toolkit is also installed!
Pleeeeease, please, tell me if the ant script is messed up and how to fix it or another way around.

2 answers



permanent link
Hongyan Huo (11) | answered Apr 24 '12, 5:51 p.m.
Hi,

The sample file was created in windows; if you downloaded it, make sure the format (encoding) is fine and there is no mal-formatted characters such as line feeds. You may try to open an editor on the computer where the import engine is located and recreate the ant script.

With regard to testing with java, it seems you had a classpath problem, make sure in the command line the value for lib is valid. E.g. -lib /user/buildsystem/buildtoolkit

Hope it helps.

permanent link
behnam Tehrani (2678) | answered Apr 27 '12, 11:52 p.m.
thanks for the reply.
i fixed the problem. the problem was with the old java version. :P

Your answer


Register or 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.