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.

tarTree

abstract fun tarTree(tarPath: Any): FileTree(source)

Creates a read-only FileTree which contains the contents of the given TAR file, as defined by tarTree.

Return

the file tree. Never returns null.

Since

6.6

Parameters

tarPath

The TAR file. Evaluated as per file.