override fun writeExternal()

in src/main/kotlin/com/jetbrains/plugin/jtreg/configuration/JTRegConfiguration.kt [407:437]


    override fun writeExternal(element: Element) {
        super.writeExternal(element)

        val jtreg = ConfigurationHelper.prepareTestData(data)

        element.setAttribute("configurationName", name)
        element.setAttribute("testKind", getTestKind())
        element.setAttribute("packageName", data.packageName)
        element.setAttribute("className", data.className)

        data.testGroup?.let {
            val testGroup = Element("testGroup")
            testGroup.setAttribute("testRootDirectory", it.testRootDirectory)
            testGroup.setAttribute("relativeTestDirectory", it.relativeTestDirectory)
            testGroup.setAttribute("groupName", it.groupName)
            element.addContent(testGroup)
        }

        element.setAttribute("alternativeClasspathEnabled", alternativeClasspathEnabled.toString())
        element.setAttribute("alternativeJrePath", alternativeJrePath)
        element.setAttribute("workingDirectory", data.workingDirectory)
        element.setAttribute("parameters", data.parameters)
        element.setAttribute("vmParameters", data.vmParameters)

        if (data.envVars.isNotEmpty()) {
            EnvironmentVariablesComponent.writeExternal(element, data.envVars)
        }

        element.setAttribute("runCmd", runCmd)
        element.addContent(jtreg)
    }