Conditional print
This commit is contained in:
1 parent
5780337b08
commit
bbd8f76f08
1 file changed
+8
-5
@@ -36,11 +36,14 @@ object TsGenerator {
|
||||
appendLine("// AUTO-GENERATED. DO NOT EDIT.")
|
||||
appendLine("// TSGenerator Version: $versionInfo")
|
||||
appendLine("// package: $packageName")
|
||||
appendLine("// includeClasses:")
|
||||
includeClasses
|
||||
.filter { it.isNotBlank() }
|
||||
.distinct()
|
||||
.forEach { appendLine("//\t$it") }
|
||||
if (includeClasses.isNotEmpty()) {
|
||||
appendLine("// includeClasses:")
|
||||
includeClasses
|
||||
.filter { it.isNotBlank() }
|
||||
.distinct()
|
||||
.forEach { appendLine("//\t$it") }
|
||||
}
|
||||
|
||||
appendLine()
|
||||
|
||||
classes.forEach { cls ->
|
||||
|
||||
Reference in new issue
Block a user