From 8e227231aa79adbd63971f55fe4a3b7b1b12fb5a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 17 Nov 2023 16:54:24 +0100 Subject: [PATCH] feat(evaluator): Also print the rules used as part of configuration Signed-off-by: Sebastian Schuberth --- .../commands/evaluator/src/main/kotlin/EvaluatorCommand.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/commands/evaluator/src/main/kotlin/EvaluatorCommand.kt b/plugins/commands/evaluator/src/main/kotlin/EvaluatorCommand.kt index 77cc5d84a85d0..ae0632d5663db 100644 --- a/plugins/commands/evaluator/src/main/kotlin/EvaluatorCommand.kt +++ b/plugins/commands/evaluator/src/main/kotlin/EvaluatorCommand.kt @@ -212,11 +212,13 @@ class EvaluatorCommand : OrtCommand( repositoryConfigurationFile ) - val configurationInfo = configurationFiles.joinToString("\n\t") { file -> + val configurationInfo = configurationFiles.joinToString("\n\t", postfix = "\n\t") { file -> file.absolutePath + " (does not exist)".takeIf { !file.exists() }.orEmpty() + } + scriptUris.joinToString("\n\t") { + runCatching { File(it).absolutePath }.getOrDefault(it.toString()) } - echo("Looking for evaluator-specific configuration in the following files and directories:") + echo("Looking for evaluator-specific configuration in the following files, directories and resources:") echo("\t" + configurationInfo) // Fail early if output files exist and must not be overwritten.