use of org.gradle.language.base.internal.tasks.StaleClassCleaner in project gradle by gradle.
the class JavaScriptMinify method compileJavaScriptSources.
@TaskAction
void compileJavaScriptSources() {
StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
cleaner.setDestinationDir(getDestinationDir());
cleaner.execute();
MinifyFileVisitor visitor = new MinifyFileVisitor();
getSource().visit(visitor);
JavaScriptCompileSpec spec = new DefaultJavaScriptCompileSpec(visitor.relativeFiles, getDestinationDir(), getForkOptions());
getCompiler().execute(spec);
}
use of org.gradle.language.base.internal.tasks.StaleClassCleaner in project gradle by gradle.
the class PlayCoffeeScriptCompile method doCompile.
@Override
public void doCompile() {
StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
cleaner.setDestinationDir(getDestinationDir());
cleaner.execute();
super.doCompile();
}
use of org.gradle.language.base.internal.tasks.StaleClassCleaner in project gradle by gradle.
the class ProcessResources method copy.
@Override
protected void copy() {
StaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
cleaner.setDestinationDir(getDestinationDir());
cleaner.execute();
super.copy();
}
use of org.gradle.language.base.internal.tasks.StaleClassCleaner in project gradle by gradle.
the class CleaningJavaCompilerSupport method execute.
@Override
public WorkResult execute(T spec) {
StaleClassCleaner cleaner = createCleaner(spec);
cleaner.setDestinationDir(spec.getDestinationDir());
cleaner.setSource(spec.getSource());
cleaner.execute();
Compiler<? super T> compiler = getCompiler();
return compiler.execute(spec);
}
Aggregations