The task is used to encrypt a password value.
The task supports Build Extensions Debugging 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 |
| password | A plain-text password value to encrypt. | Yes |
| property | Name of the Ant property in which to return the encrypted value. | Yes |
| verbose | Specifies more message output. The default is false. | No |
Encrypt plain-text password value
<target name="go" description="UtilityGetPassword">
<xt:setpassword password="${pwd}" property="mypwd"/>
<echo>${mypwd}</echo>
<xt:getpassword password="${mypwd}" property="mypassword"/>
<echo>${mypassword}</echo>
</target>
Example log:
go:
[echo] 123ba8e1662f4594a493a9b69f347a42
[echo] EX0AMPLE