It's all about the answers!

Ask a question

Programmatically setting build engine on Build Definition


Michael Hart (1166) | asked Mar 07 '13, 10:42 p.m.
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.

One answer



permanent link
Scott Cowan (966310) | answered Mar 18 '13, 11:00 a.m.
JAZZ DEVELOPER
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

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.