replaceFromFile

@get:InputFile
@get:PathSensitive(value = PathSensitivity.ABSOLUTE)
@get:Optional
val replaceFromFile: File?

Optional resolved file whose content is used as the replacement text. Read at task execution time — no configuration-time file I/O. When set, replace acts as a template where {{CONTENT}} is substituted with the file's trimmed content.