From afb2bf0b4fb0446a6bc427e8ee31cbd56b23d052 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 3 Nov 2019 01:50:57 +0100 Subject: Small fix for compiler plugin on Windows. --- .../src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt index 84d31593..43d83aef 100644 --- a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt +++ b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt @@ -62,8 +62,8 @@ class KVProcessor : AbstractProcessor() { && it.classDescriptor.name.asString().endsWith("Service") ) { val cl = it.classDescriptor - val projectFolder = cl.canonicalFilePath()?.split("${File.separator}src")?.get(0) ?: "" - val buildFolder = "$projectFolder${File.separator}build" + val projectFolder = cl.canonicalFilePath()?.split("/src")?.get(0) ?: "" + val buildFolder = "$projectFolder/build" val genRootDir = File(buildFolder, "generated-src").apply { mkdirs() } -- cgit