From c3b7e5069a65c7134bd16f8d841f005fcb431a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20G=C3=B3ral?= Date: Sat, 24 Jul 2021 21:39:42 +0200 Subject: [PATCH] Add empty end-line to generated plantuml file --- corellium/domain/TestAndroid-execute.puml | 2 +- .../main/kotlin/flank/exection/parallel/plantuml/PlantUml.kt | 2 +- .../parallel/plantuml/internal/GeneratePlantUmlString.kt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/corellium/domain/TestAndroid-execute.puml b/corellium/domain/TestAndroid-execute.puml index 318ea54220..872c132e14 100644 --- a/corellium/domain/TestAndroid-execute.puml +++ b/corellium/domain/TestAndroid-execute.puml @@ -41,4 +41,4 @@ end note [PrepareShards] --> [ParseTestCases] [PrepareShards] --> [LoadPreviousDurations] -@enduml \ No newline at end of file +@enduml diff --git a/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/PlantUml.kt b/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/PlantUml.kt index 041ff6c479..f11233c9cb 100644 --- a/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/PlantUml.kt +++ b/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/PlantUml.kt @@ -17,7 +17,7 @@ fun Any.generatePlanUml( dir: String = "" ): File = generatePlanUmlFile( tasks = tasks, - path = File(dir, javaClass.simpleName).absolutePath + "-execute.puml", + path = File(dir).resolve(javaClass.simpleName).absolutePath + "-execute.puml", prefixToRemove = javaClass.name ) diff --git a/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/internal/GeneratePlantUmlString.kt b/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/internal/GeneratePlantUmlString.kt index 18f63bb1ed..0a932ce5b7 100644 --- a/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/internal/GeneratePlantUmlString.kt +++ b/tool/execution/parallel/plantuml/src/main/kotlin/flank/exection/parallel/plantuml/internal/GeneratePlantUmlString.kt @@ -32,6 +32,7 @@ ${colors.printColors(name)} ${graph.printRelations(name)} @enduml + """.trimIndent() }