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.

PathFactory

open class PathFactory(source)

Path Factory.

Since

1.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addPathVariable(name: String, dir: File): PathFactory
Add path variable.
Link copied to clipboard
open fun path(file: File): FilePath
open fun path(file: File, useFileScheme: Boolean): FilePath
Creates a path for the given file.
open fun path(url: String): Path
open fun path(url: String, relPath: String): Path
Creates a path for the given URL.
Link copied to clipboard
open fun relativePath(pathVar: String, file: File): FilePath
Creates a path relative to the given path variable.