Write Properties
Writes a java.util.Properties in a way that the results can be expected to be reproducible.
There are a number of differences compared to how properties are stored:
- no timestamp comment is generated at the beginning of the file
- the lines in the resulting files are separated by a pre-set separator (defaults to '\n') instead of the system default line separator
- the properties are sorted alphabetically
Like with java.util.Properties, Unicode characters are escaped when using the default Latin-1 (ISO-8559-1) encoding.
Since
3.3
See also
Properties
The extra properties extension in this object's extension container.
Functions
Kotlin extension function for org.gradle.api.tasks.WriteProperties.properties.
Looks up a service provided by Gradle for use in this task.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.Task.service.
Kotlin extension function for org.gradle.api.tasks.WriteProperties.setProperties.
Returns the extension of the specified type.
Returns the extension of the specified extensionType.