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?
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.
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
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
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