api / org.gradle.api.file / ContentFilterable / expand

expand

abstract fun expand(properties: MutableMap<String, *>): ContentFilterable

Expands property references in each file as it is copied. More specifically, each file is transformed using Groovy's groovy.text.SimpleTemplateEngine. This means you can use simple property references, such as $property or ${property} in the file. You can also include arbitrary Groovy code in the file, such as ${version ?: 'unknown'} or ${classpath*.name.join(' ')}

Parameters

properties - to implement line based filtering

Return
this