- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parentOrRoot (0.04 sec)
-
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt
fun Directory.parentOrRoot(): Directory = if (this.file("version.txt").asFile.exists()) { this } else { val parent = dir("..") when { parent.file("version.txt").asFile.exists() -> parent this == parent -> error("Cannot find 'version.txt' file in root of repository") else -> parent.parentOrRoot() } }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Sat Dec 21 08:58:33 UTC 2024 - 4.7K bytes - Viewed (1)