gradle
8.2-milestone-1
Kotlin DSL
gradle
/
org.gradle.util
/
Path
Path
open
class
Path
:
Comparable
<
T
>
Represents a path in Gradle.
Members
Functions
absolute
Path
Link copied to clipboard
open
fun
absolutePath
(
path
:
String
)
:
String
Resolves the given name relative to this path.
open
fun
absolutePath
(
path
:
Path
)
:
Path
append
Link copied to clipboard
open
fun
append
(
path
:
Path
)
:
Path
Appends the supplied path to this path, returning the new path.
child
Link copied to clipboard
open
fun
child
(
name
:
String
)
:
Path
Creates a child of this path with the given name.
compare
To
Link copied to clipboard
open
fun
compareTo
(
other
:
Path
)
:
Int
equals
Link copied to clipboard
open
fun
equals
(
@
Nullable
o
:
Any
)
:
Boolean
get
Name
Link copied to clipboard
@
Nullable
open
fun
getName
(
)
:
String
Returns the base name of this path, or null if this path is the root path.
get
Parent
Link copied to clipboard
@
Nullable
open
fun
getParent
(
)
:
Path
Returns the parent of this path, or null if this path has no parent.
get
Path
Link copied to clipboard
open
fun
getPath
(
)
:
String
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
is
Absolute
Link copied to clipboard
open
fun
isAbsolute
(
)
:
Boolean
path
Link copied to clipboard
open
fun
path
(
@
Nullable
path
:
String
)
:
Path
relative
Path
Link copied to clipboard
open
fun
relativePath
(
path
:
String
)
:
String
Calculates a path relative to this path.
open
fun
relativePath
(
path
:
Path
)
:
Path
remove
First
Segments
Link copied to clipboard
open
fun
removeFirstSegments
(
n
:
Int
)
:
Path
segment
Link copied to clipboard
open
fun
segment
(
index
:
Int
)
:
String
segment
Count
Link copied to clipboard
open
fun
segmentCount
(
)
:
Int
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
Properties
ROOT
Link copied to clipboard
val
ROOT
:
Path
SEPARATOR
Link copied to clipboard
val
SEPARATOR
:
String
=
":"