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

Programmatically setting build engine on Build Definition

Hi,

How might I do this? I saw a post on how to set the workspace, but I've looked through what can be set with IJazzScmConfigurationElement and build engine isn't one of them.

Perhaps with IBuildDefinition.setConfigurationProperty?
setConfigurationProperty(java.lang.String elementId, java.lang.String name, java.lang.String value)
          Set the value of the configuration property with the given name in the configuration element with the given id.

I can't work out what elementId would be.

0 votes



One answer

Permanent link
Hi Michael,

You need to add a build definition to a build engine's list of supported build definitions.  See com.ibm.team.build.common.model.IBuildEngine.getSupportedBuildDefinitions().

If you can download the SDK for your RTC release, you can see an example in com.ibm.team.build.internal.ui.editors.builddefinition.GeneralConfigurationEditor.addSupportedDefinition(String).

Hope that helps,
Scott

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
× 562
× 457

Question asked: Mar 07 '13, 10:42 p.m.

Question was seen: 5,799 times

Last updated: Mar 18 '13, 11:00 a.m.

Confirmation Cancel Confirm