aboutsummaryrefslogtreecommitdiff
path: root/kvision-tools/kvision-compiler-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-11-03 01:50:57 +0100
committerRobert Jaros <rjaros@finn.pl>2019-11-03 01:50:57 +0100
commitafb2bf0b4fb0446a6bc427e8ee31cbd56b23d052 (patch)
tree26c04baab55e6617ef717bcf0f317523a6637b6f /kvision-tools/kvision-compiler-plugin/src/main/kotlin
parent4590afd2a8d2b05662faddf0e07b7d5147b66573 (diff)
downloadkvision-afb2bf0b4fb0446a6bc427e8ee31cbd56b23d052.tar.gz
kvision-afb2bf0b4fb0446a6bc427e8ee31cbd56b23d052.tar.bz2
kvision-afb2bf0b4fb0446a6bc427e8ee31cbd56b23d052.zip
Small fix for compiler plugin on Windows.
Diffstat (limited to 'kvision-tools/kvision-compiler-plugin/src/main/kotlin')
-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()
}