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.
Note: 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 encode. | Yes |
Examples
The following sample encodes and
saves the properties defined in private.properties.
<encodeProperties file="private.properties" />