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.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.plugins.ide.idea.model
/
PathFactory
Path
Factory
API
open
class
PathFactory
(
source
)
Path Factory.
Since
1.0
Members
Constructors
Path
Factory
Link copied to clipboard
API
constructor
(
)
Functions
add
Path
Variable
Link copied to clipboard
API
open
fun
addPathVariable
(
name
:
String
,
dir
:
File
)
:
PathFactory
Add path variable.
path
Link copied to clipboard
API
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.
relative
Path
Link copied to clipboard
API
open
fun
relativePath
(
pathVar
:
String
,
file
:
File
)
:
FilePath
Creates a path relative to the given path variable.