It's all about the answers!

Ask a question

creation of build definition by RTC plain libraries


Ganadakshaka K (1123) | asked Jul 16, 2:15 a.m.

i tried to get the jenkins build definition template 
IBuildDefinitionTemplate HJtemplate = BuildConfigurationRegistry.getInstance().getBuildDefinitionTemplate("com.ibm.rational.connector.hudson.ui.buildDefinitionTemplate");

giving null

tried to add jars but,am not able find the below jars

com.ibm.rational.connector.hudson.client_1.0.400.v20130502_0139.jar
com.ibm.rational.connector.hudson.common_1.0.400.v20130430_2233.jar
com.ibm.rational.connector.hudson.ui_1.0.400.v20130502_0139.jar

please provide me link for these jars and snippet to create the build definiton /procedure to do it

thank in advance


Comments
Ganadakshaka K commented Jul 16, 2:17 a.m.

using RTC 7.0.3 libraries


One answer



permanent link
Ralph Schoon (63.6k33646) | answered Jul 16, 2:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I would suggest to perform the EWM Extensions workshop to set up an environment, where you can see how the SDK creates build definitions. See https://rsjazz.wordpress.com/2024/02/09/ewm-rational-team-concert-extensions-workshop-changes-for-7-0-3/ for how to.

The jar files mentioned above are part of the SDK.

Once you have set up your environment, you can use that to develop your Plain Java code.


Comments
Ganadakshaka K commented Jul 16, 5:10 a.m.

any other alternative ?

or 
why this set up needed?



Ralph Schoon commented Jul 16, 5:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
  1. Look in https://www.google.com/search?q=build+definition+plain+java+site%3Ajazz.net maybe there are code examples.
  2. Because you have then access to sample code e.g. classes like CreateBuildDefinitionSnippet that you can copy/paste. My opinion is, if you don't have the SDK development set up, don't do plain java development.

Ralph Schoon commented Jul 16, 5:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You need to do lab 1. 1.1 to 1.4 and 1.10


Ganadakshaka K commented Jul 16, 8:13 a.m.

while starting ecllipse i am facing with issuse in logs

Caused by: java.lang.ClassNotFoundException: org.w3c.dom.stylesheets.StyleSheet cannot be found by org.eclipse.e4.ui.css.core_0.10.100.v20140424-2042


Ganadakshaka K commented Jul 16, 8:14 a.m. | edited Jul 16, 8:30 a.m.

At the end of 1.3

if i remove the -vm option in ini file then its working 
is it ok to remove that option?



Ralph Schoon commented Jul 16, 8:42 a.m. | edited Jul 16, 8:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Unfortunately the SDK does not work with all Eclipse versions. I tried the EWM workshop for 7.0.3 with Eclipse 2022/09 (4.25). I kept it running on the java VM that it ships with. I did not create a new -vm as explained in the workshop. For the Plain Java Client Library development, I added a 1.8 VM in Eclipse that is the used to run the plain java.


So, leaving out the -vm is OK. These newer Eclipse versions will not run with the 1.8 we ship.
 


showing 5 of 6 show 1 more comments

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.