override fun createMergeCommandConfig()

in plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/coverage/dotcover/DotCover26CommandsConfigFactory.kt [14:38]


    override fun createMergeCommandConfig(sources: Collection<File>, output: File): Document {
        return object : Document() {
            init {
                addContent(object : Element("MergeParams") {
                    init {
                        addContent(object : Element("Source") {
                            init {
                                for (source in sources) {
                                    addContent(object : Element("string") {
                                        init { text = source.path }
                                    } as Content)
                                }
                            }
                        } as Content)
                        addContent(object : Element("TempDir") {
                            init { text = coverageParameters.getTempDirectory().path }
                        } as Content)
                        addContent(object : Element("Output") {
                            init { text = output.path }
                        } as Content)
                    }
                })
            }
        }
    }