robfletcher / gradle-compass

A SASS / Compass plugin for Gradle
Apache License 2.0
60 stars 38 forks source link

How to specify cssDir and sassDir on a per-task basis? #59

Closed larsgrefer closed 7 years ago

larsgrefer commented 8 years ago

I have the following configuration:

    compass {
        //sourcemap = true
        //debugInfo = true
        //force = false
        //environment = "development"
        //outputStyle = "expanded"
        importPath = rootProject.files("shared/src/main/sass")
    }

    task("compileResourceCompass", type: com.github.robfletcher.compass.CompassTask ) {
        command = "compile"
        sassDir = project.file("src/main/resources")
        cssDir = processResources.destinationDir
        //mustRunAfter processResources
    }

My custom values for sassDir and cssDir are not used.

Is there a way to create multiple instances of CompassTask with different directories?