Search in sources :

Example 1 with ScalaCompileOptionsData

use of org.jetbrains.plugins.gradle.model.data.ScalaCompileOptionsData in project intellij-community by JetBrains.

the class ScalaGradleProjectResolverExtension method create.

@Nullable
@Contract("null -> null")
private static ScalaCompileOptionsData create(@Nullable ScalaCompileOptions options) {
    if (options == null)
        return null;
    ScalaCompileOptionsData result = new ScalaCompileOptionsData();
    result.setAdditionalParameters(options.getAdditionalParameters());
    result.setDaemonServer(options.getDaemonServer());
    result.setDebugLevel(options.getDebugLevel());
    result.setDeprecation(options.isDeprecation());
    result.setEncoding(options.getEncoding());
    result.setFailOnError(options.isFailOnError());
    result.setForce(options.getForce());
    result.setFork(options.isFork());
    result.setListFiles(options.isListFiles());
    result.setLoggingLevel(options.getLoggingLevel());
    result.setDebugLevel(options.getDebugLevel());
    result.setLoggingPhases(options.getLoggingPhases());
    result.setOptimize(options.isOptimize());
    result.setUnchecked(options.isUnchecked());
    result.setUseAnt(options.isUseAnt());
    result.setUseCompileDaemon(options.isUseCompileDaemon());
    result.setForkOptions(create(options.getForkOptions()));
    return result;
}
Also used : ScalaCompileOptionsData(org.jetbrains.plugins.gradle.model.data.ScalaCompileOptionsData) Contract(org.jetbrains.annotations.Contract) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

Contract (org.jetbrains.annotations.Contract)1 Nullable (org.jetbrains.annotations.Nullable)1 ScalaCompileOptionsData (org.jetbrains.plugins.gradle.model.data.ScalaCompileOptionsData)1