All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercehub.gradle.plugin.avro.OutputDirTask Maven / Gradle / Ivy

package com.commercehub.gradle.plugin.avro;

import org.gradle.api.file.FileCollection;
import org.gradle.api.specs.Spec;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.SourceTask;

import java.io.File;

class OutputDirTask extends SourceTask {
    private File outputDir;

    public void setOutputDir(File outputDir) {
        this.outputDir = outputDir;
        getOutputs().dir(outputDir);
    }

    @OutputDirectory
    protected File getOutputDir() {
        return outputDir;
    }

    protected FileCollection filterSources(Spec spec) {
        return getInputs().getSourceFiles().filter(spec);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy