Skip to content

Commit d27ef12

Browse files
committed
stop using depricated API
1 parent f3c2ee4 commit d27ef12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/main/kotlin/Constants.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ val webUIRevisionTag = System.getenv("WebUIRevision") ?: "r963"
1616

1717
// counts commits on the master branch
1818
val tachideskRevision = runCatching {
19-
System.getenv("ProductRevision") ?: Runtime
20-
.getRuntime()
21-
.exec("git rev-list HEAD --count")
19+
System.getenv("ProductRevision") ?: ProcessBuilder()
20+
.command("git", "rev-list", "HEAD", "--count")
21+
.start()
2222
.let { process ->
2323
process.waitFor()
2424
val output = process.inputStream.use {

0 commit comments

Comments
 (0)