1
0

Add logback config

This commit is contained in:
2020-09-11 15:43:49 +02:00
parent 658ac10375
commit c7a199fb2f
8 changed files with 53 additions and 7 deletions
+4 -4
View File
@@ -9,11 +9,11 @@ class ProjectZip(private val templates: List<Template>) {
fun createZip(project: Project): String {
val name: String
ZipOutput(sanitizeFilename(project.name)).use {
name = it.name
ZipOutput(sanitizeFilename(project.name)).use { zip ->
name = zip.name
templates.forEach { template ->
it.write(template.path(project), template.render(project))
templates.filter { it.enabled(project) }.forEach { template ->
zip.write(template.path(project), template.render(project))
}
}