Package org.gradle.language.base.internal.tasks

Examples of org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner


        source = getProject().files();
    }

    @TaskAction
    public void assemble() {
        SimpleStaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
        cleaner.setDestinationDir(getObjectFileDir());
        cleaner.execute();

        DefaultAssembleSpec spec = new DefaultAssembleSpec();
        spec.setTempDir(getTemporaryDir());

        spec.setObjectFileDir(getObjectFileDir());
View Full Code Here


    }

    @Override
    protected StaleClassCleaner createCleaner(ScalaJavaJointCompileSpec spec) {
        if (spec.getScalaCompileOptions().isUseAnt()) {
            return new SimpleStaleClassCleaner(taskOutputs);
        }
        return new NoOpStaleClassCleaner();
    }
View Full Code Here

*/
public class ProcessResources extends Copy {

    @Override
    protected void copy() {
        StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
        cleaner.setDestinationDir(getDestinationDir());
        cleaner.execute();
        super.copy();
    }
View Full Code Here

        return compiler;
    }

    @Override
    protected StaleClassCleaner createCleaner(GroovyJavaJointCompileSpec spec) {
        return new SimpleStaleClassCleaner(taskOutputs);
    }
View Full Code Here

        this.delegate = delegate;
        this.taskOutputs = taskOutputs;
    }

    public WorkResult execute(T spec) {
        SimpleStaleClassCleaner cleaner = new SimpleStaleClassCleaner(taskOutputs);
        cleaner.setDestinationDir(spec.getDestinationDir());
        cleaner.execute();
        return delegate.execute(spec);
    }
View Full Code Here

        }
        return compileResult;
    }

    private boolean cleanPreviousOutputs(NativeCompileSpec spec) {
        SimpleStaleClassCleaner cleaner = new SimpleStaleClassCleaner(getTask().getOutputs());
        cleaner.setDestinationDir(spec.getObjectFileDir());
        cleaner.execute();
        return cleaner.getDidWork();
    }
View Full Code Here

        if (spec.getCompileOptions().isUseDepend()) {
            AntDependsStaleClassCleaner cleaner = new AntDependsStaleClassCleaner(antBuilderFactory, spec.getCompileOptions());
            cleaner.setDependencyCacheDir(spec.getDependencyCacheDir());
            return cleaner;
        } else {
            return new SimpleStaleClassCleaner(taskOutputs);
        }
    }
View Full Code Here

TOP

Related Classes of org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner

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.