setPassword

The setPassword task encrypts a password value.

The setPassword encrypts a password value.

The following table describes setPassword attributes.

Attribute Description Required

password

Previously encrypted password value. Refer to setPassword for more information.

Yes

property

The name of the ant property in which to return the workspace name.

Yes

verbose

Specifies more message output. The default is false.

No

Note: The setPassword/getPassword tasks are used to secure passwords used by the build.

Example

Encrypt plan-text password value


<target name="go" description="UtilityGetPassword">
	<im:setpassword password="${pwd}" property="mypwd"/>
	<echo>${mypwd}</echo>

	<im:getpassword password="${mypwd}" property="mypassword"/>
	<echo>${mypassword}</echo>
</target>