aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt4
1 files 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()
}