api / org.gradle.api.reporting / ReportingExtension / file

file

open fun file(path: String): File

Creates a file object for the given path, relative to #getBaseDir().

The reporting base dir can be changed, so users of this method should use it on demand where appropriate.

Parameters

path - the relative path

Return
a file object at the given path relative to #getBaseDir()