aboutsummaryrefslogtreecommitdiff
path: root/runners/cli/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-02-03 15:57:29 +0100
committerAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-02-04 12:10:59 +0100
commit582f5f89557e943169c10a4fc3d58d99528d8e86 (patch)
treeeec837f5f235228df91659663b71fc4f0c281495 /runners/cli/src/main/kotlin
parent3a13b81f2aebc255bec5e48b276c86b2d4ee16a2 (diff)
downloaddokka-582f5f89557e943169c10a4fc3d58d99528d8e86.tar.gz
dokka-582f5f89557e943169c10a4fc3d58d99528d8e86.tar.bz2
dokka-582f5f89557e943169c10a4fc3d58d99528d8e86.zip
Adds summary reporting for all logging runners
Diffstat (limited to 'runners/cli/src/main/kotlin')
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt
index 2daac470..db8ddb01 100644
--- a/runners/cli/src/main/kotlin/cli/main.kt
+++ b/runners/cli/src/main/kotlin/cli/main.kt
@@ -196,9 +196,9 @@ object MainKt {
val javaHome = System.getProperty("java.home")
val default = File(javaHome, "../lib/tools.jar")
val mac = File(javaHome, "../Classes/classes.jar")
- when {
- default.exists() -> return default
- mac.exists() -> return mac
+ return when {
+ default.exists() -> default
+ mac.exists() -> mac
else -> {
throw Exception("tools.jar not found, please check it, also you can provide it manually, using -cp")
}