file

fun file(block: FileContentBuilder.() -> Unit)(source)

Configures the file content using a DSL block.

Parameters

block

Lambda with receiver to configure file content


Configures the file content using a Java-friendly Consumer.

Parameters

block

The consumer to configure the file content


Sets the file content directly.

Return

This builder for chaining

Parameters

fileContent

The file content to set