The task is used to change ownership of the specified workspace.
The task supports Team Build Attributes, Build Extensions Debugging Attributes, Build Extensions General Attributes, as well as, its own task specific attributes. Click on a link for more information on the common attributes.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| owner | The userid of the new owner of the workspace. | Yes |
| property | The name of the Ant property in which to return the result. If the new owner of the workspace is set, the property is set to true. Otherwise, the property value is set to false. | No |
| public | Sets the read-scope of the workspace. Specify true to set the workspace read-scope to public. Specify false to set the workspace read-scope to private. This attribute is optional. If the attribute is not specified, the read-scope of the workspace is not changed. | No |
| workspaceUUID | The UUID of the workspace. The value of this attribute is typically ${team.scm.workspaceUUID} because the property is built-in when using the Jazz Build Engine. | Yes |
Set the owner of a workspace
<target name="main">
<xt:setworkspaceowner
repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
owner="djreilly@us.ibm.com"
property="my.property"
public="false"
workspaceUUID="${team.scm.workspaceUUID}"
/>
<echo>${my.property}</echo>
</target>