From 72be2e589d0bc45bb164976dca4d1619cf1ce9a7 Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Thu, 30 May 2024 13:58:49 +0200 Subject: [PATCH] fix: correctly read pipeline file --- src/main/kotlin/parser/Parser.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/parser/Parser.kt b/src/main/kotlin/parser/Parser.kt index 379957f..61a03e4 100644 --- a/src/main/kotlin/parser/Parser.kt +++ b/src/main/kotlin/parser/Parser.kt @@ -18,8 +18,13 @@ class Parser(file: File) { .java .getResource("/pipeline.ttl") .let { it ?: Log.shared.fatal("Pipeline file not found") } - .toURI() - .let { File(it) } + .let { + try { + File(it.path) + } catch (e: Exception) { + Log.shared.fatal("Pipeline ${it.path} not found") + } + } .readModelRecursively() /** Class references to the different processors. */