Add method to sync options from one instance to another as convention
^KT-57159 In Progress
This commit is contained in:
committed by
Space Team
parent
4d4e5f4701
commit
6509b0201c
@@ -746,6 +746,21 @@ private fun Printer.generateCompilerOptionsHelper(
|
||||
addAdditionalJvmArgs(helperName)
|
||||
}
|
||||
println("}")
|
||||
|
||||
println()
|
||||
println("internal fun syncOptionsAsConvention(")
|
||||
withIndent {
|
||||
println("from: $type,")
|
||||
println("into: $type,")
|
||||
}
|
||||
println(") {")
|
||||
withIndent {
|
||||
if (parentHelperName != null) println("$parentHelperName.syncOptionsAsConvention(from, into)")
|
||||
for (property in properties) {
|
||||
println("into.${property.name}.convention(from.${property.name})")
|
||||
}
|
||||
}
|
||||
println("}")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user