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("// AUTO-GENERATED. DO NOT EDIT.")
|
||||||
appendLine("// TSGenerator Version: $versionInfo")
|
appendLine("// TSGenerator Version: $versionInfo")
|
||||||
appendLine("// package: $packageName")
|
appendLine("// package: $packageName")
|
||||||
appendLine("// includeClasses:")
|
if (includeClasses.isNotEmpty()) {
|
||||||
includeClasses
|
appendLine("// includeClasses:")
|
||||||
.filter { it.isNotBlank() }
|
includeClasses
|
||||||
.distinct()
|
.filter { it.isNotBlank() }
|
||||||
.forEach { appendLine("//\t$it") }
|
.distinct()
|
||||||
|
.forEach { appendLine("//\t$it") }
|
||||||
|
}
|
||||||
|
|
||||||
appendLine()
|
appendLine()
|
||||||
|
|
||||||
classes.forEach { cls ->
|
classes.forEach { cls ->
|
||||||
|
|||||||
Reference in new issue
Block a user