Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.27 KB

get-file.md

File metadata and controls

37 lines (23 loc) · 2.27 KB

subkt / myaa.subkt.tasks / Subs / getFile

getFile

fun getFile(filename: String, entry: String= "", context:AbstractContext? = null): Provider<String!>! (source)

Reads the specified file and processes it using Velocity.

This function is run outside of a task context, using only release for lookup unless an entry is manually specified.

getFile("info.txt")

Parameters

filename - The path to the file to read.

entry - Optional manually specified entry for property lookup.fun getFile(filename: Provider<String>, entry: String= "", context:AbstractContext? = null): Provider<String!>! (source)

Reads the specified file and processes it using Velocity.

This function is run outside of a task context, using only release for lookup unless an entry is manually specified.

getFile("info.txt")

Parameters

filename - A provider returning the path to the file to read.

entry - Optional manually specified entry for property lookup.