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

com.bmuschko.gradle.clover.CloverSourceSet.groovy Maven / Gradle / Ivy

The newest version!
package com.bmuschko.gradle.clover

import java.util.concurrent.Callable

import org.gradle.api.file.FileCollection

import groovy.transform.CompileStatic
import groovy.transform.ToString

@CompileStatic
@ToString
class CloverSourceSet implements Serializable {
    static final long serialVersionUID = 1L

    CloverSourceSet(boolean groovy = false) {
        this.groovy = groovy
    }

    Collection srcDirs = new HashSet()

    File classesDir
    void setClassesDir(File classesDir) {
        this.classesDir = classesDir
        this.backupDir = new File("${classesDir}-bak")
    }

    private File backupDir
    File getBackupDir() {
        backupDir
    }

    private boolean groovy
    boolean isGroovy() {
        groovy
    }
    void setGroovy(boolean groovy) {
        this.groovy = groovy
    }

    private transient Callable classpathProvider

    FileCollection getCompileClasspath() {
        return classpathProvider.call()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy