Package org.gradle.api.internal.tasks.compile.daemon

Examples of org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonFactory


    public Compiler<GroovyJavaJointCompileSpec> newCompiler(GroovyJavaJointCompileSpec spec) {
        CompileOptions javaOptions = spec.getCompileOptions();
        GroovyCompileOptions groovyOptions = spec.getGroovyCompileOptions();
        Compiler<JavaCompileSpec> javaCompiler = javaCompilerFactory.createForJointCompilation(javaOptions);
        Compiler<GroovyJavaJointCompileSpec> groovyCompiler = new ApiGroovyCompiler(javaCompiler);
        CompilerDaemonFactory daemonFactory;
        if (groovyOptions.isFork()) {
            daemonFactory = compilerDaemonFactory;
        } else {
            daemonFactory = inProcessCompilerDaemonFactory;
        }
View Full Code Here


    private Compiler<ScalaJavaJointCompileSpec> getCompiler(ScalaJavaJointCompileSpec spec) {
        if (compiler == null) {
            ProjectInternal projectInternal = (ProjectInternal) getProject();
            IsolatedAntBuilder antBuilder = getServices().get(IsolatedAntBuilder.class);
            CompilerDaemonFactory compilerDaemonFactory = getServices().get(CompilerDaemonManager.class);
            JavaCompilerFactory javaCompilerFactory = getServices().get(JavaCompilerFactory.class);
            ScalaCompilerFactory scalaCompilerFactory = new ScalaCompilerFactory(projectInternal, antBuilder, javaCompilerFactory, compilerDaemonFactory);
            Compiler<ScalaJavaJointCompileSpec> delegatingCompiler = scalaCompilerFactory.newCompiler(spec);
            compiler = new CleaningScalaCompiler(delegatingCompiler, getOutputs());
        }
View Full Code Here

        this.inProcessCompilerDaemonFactory = inProcessCompilerDaemonFactory;
        this.forkOptions = forkOptions;
    }

    public org.gradle.language.base.internal.compile.Compiler<TwirlCompileSpec> newCompiler(TwirlCompileSpec spec) {
        CompilerDaemonFactory daemonFactory;
        if (spec.isFork()) {
            daemonFactory = compilerDaemonManager;
        } else {
            daemonFactory = inProcessCompilerDaemonFactory;
        }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.