- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for exists (0.23 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 -> throw IllegalStateException("Cannot find 'version.txt' file in root of repository") else -> parent.parentOrRoot() }
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Feb 09 22:52:01 GMT 2024 - 5.7K bytes - Viewed (2)