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

Examples of org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner.execute()


    @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 void copy() {
        StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
        cleaner.setDestinationDir(getDestinationDir());
        cleaner.execute();
        super.copy();
    }
}
View Full Code Here

    }

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

    }

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

    protected TaskInternal getTask() {
        return task;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.