EditPropertiesFile task
Edits the properties in a properties file.
Parameters
Attribute | Description | Required |
---|---|---|
file | The properties file to edit. | Yes |
Nested elements
- Property
Specifies a property in the properties file to be added, deleted or updated.
Attribute Description Required key The property key. Yes value The property value. Yes delete Whether the operation is to delete the property. No; Defaults to false
Examples
The following example edits ${basedir}/build.properties by
setting the
run.extract
property to false and deleting
the delete.me
property. <editPropertiesFile file="${basedir}/build.properties">
<property key="run.extract" value="true" />
<property key="delete.me" delete="true" />
</editPropertiesFile>