Map toMap()

in src/main/groovy/org/jetbrains/gradle/ext/Compiler.groovy [42:57]


    Map<String, ?> toMap() {
        Map<String, ?> map = [:]
        if (resourcePatterns) map.put("resourcePatterns", resourcePatterns)
        if (processHeapSize != null) map.put("processHeapSize", processHeapSize)
        if (autoShowFirstErrorInEditor != null) map.put("autoShowFirstErrorInEditor", autoShowFirstErrorInEditor)
        if (displayNotificationPopup != null) map.put("displayNotificationPopup", displayNotificationPopup)
        if (clearOutputDirectory != null) map.put("clearOutputDirectory", clearOutputDirectory)
        if (addNotNullAssertions != null) map.put("addNotNullAssertions", addNotNullAssertions)
        if (enableAutomake != null) map.put("enableAutomake", enableAutomake)
        if (parallelCompilation != null) map.put("parallelCompilation", parallelCompilation)
        if (rebuildModuleOnDependencyChange != null) map.put("rebuildModuleOnDependencyChange", rebuildModuleOnDependencyChange)
        if (additionalVmOptions != null) map.put("additionalVmOptions", additionalVmOptions)
        if (useReleaseOption != null) map.put("useReleaseOption", useReleaseOption)
        if (javacConfig != null) map.put("javacOptions", javacConfig.toMap())
        return map
    }