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

ru.vyarus.gradle.plugin.animalsniffer.report.AnimalSnifferReportsImpl.groovy Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package ru.vyarus.gradle.plugin.animalsniffer.report

import org.gradle.api.Task
import org.gradle.api.reporting.SingleFileReport
import org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport
import org.gradle.api.reporting.internal.TaskReportContainer

/**
 * AnimalSniffer reports implementation.
 *
 * @author Vyacheslav Rusakov
 * @since 14.12.2015
 */
class AnimalSnifferReportsImpl extends TaskReportContainer implements AnimalSnifferReports {

    private static final String TEXT = 'text'

    AnimalSnifferReportsImpl(Task task) {
        super(SingleFileReport, task)

        add(TaskGeneratedSingleFileReport, TEXT, task)
    }

    @Override
    SingleFileReport getText() {
        return getByName(TEXT)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy