All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.gradle.dsl.KotlinJsDceCompilerToolOptionsHelper.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC
Show newest version
// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "DuplicatedCode")

package org.jetbrains.kotlin.gradle.dsl

internal object KotlinJsDceCompilerToolOptionsHelper {

    internal fun fillCompilerArguments(
        from: org.jetbrains.kotlin.gradle.dsl.KotlinJsDceCompilerToolOptions,
        args: org.jetbrains.kotlin.cli.common.arguments.K2JSDceArguments,
    ) {
        org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptionsHelper.fillCompilerArguments(from, args)
        args.devMode = from.devMode.get()
        args.outputDirectory = from.outputDirectory.orNull
    }

    internal fun syncOptionsAsConvention(
        from: org.jetbrains.kotlin.gradle.dsl.KotlinJsDceCompilerToolOptions,
        into: org.jetbrains.kotlin.gradle.dsl.KotlinJsDceCompilerToolOptions,
    ) {
        org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptionsHelper.syncOptionsAsConvention(from, into)
        into.devMode.convention(from.devMode)
        into.outputDirectory.convention(from.outputDirectory)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy