From 582f5f89557e943169c10a4fc3d58d99528d8e86 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Mon, 3 Feb 2020 15:57:29 +0100 Subject: Adds summary reporting for all logging runners --- runners/cli/src/main/kotlin/cli/main.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runners/cli') 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") } -- cgit