Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Customize the Build and Deployment tool > Custom Ant tasks


EncodeProperties task

Encodes and saves the properties in a properties file. This task is safe to run on the same properties file multiple times, as properties that have previously been encoded are not re-encoded. If a property value needs to be changed,  replace the encoded value with the new value in plain text and rerun this task.

This task is meant for basic encoding of security-sensitive properties otherwise shown in plain text. It is imperative that other security measures (for example, physical security to servers) be used in conjunction with this task to protect security-sensitive data.


Parameters

Attribute Description Required
file The properties file to be encoded. Yes


Examples

The following sample encodes and saves the properties defined in private.properties:

<encodeProperties file="private.properties" />


Related concepts

Overview: WebSphere Commerce Build and Deployment tool

Related reference

Custom Ant tasks


+

Search Tips   |   Advanced Search