For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

offsetInFileLocation

abstract fun offsetInFileLocation(path: String, offset: Int, length: Int): ProblemSpec(source)

Declares that this problem is in a file at a certain global position with a given length.

Return

this

Since

8.6

Parameters

path

the file location

offset

the zero-indexed global offset from the beginning of the file

length

the length of the text