eriwen / gradle-css-plugin

Gradle plugin for working with CSS
http://eriwen.github.com/gradle-css-plugin
Apache License 2.0
127 stars 42 forks source link

not copying to destination #36

Open jpope19 opened 9 years ago

jpope19 commented 9 years ago
css.source {
    dev {
        css {
            srcDir "src/main/webapp/resources/less"
            include "*.less"
        }
    }
}

println "css.source.dev.css.files"
println css.source.dev.css.srcDirs
println css.source.dev.css.files
lesscss {
    source = css.source.dev.css.files
    dest = "${buildDir}/styles"
}
println lesscss.dest

outputs:

css.source.dev.css.files
[C:\work\views\tms\proto\tms\web\src\main\webapp\resources\less]
[C:\work\views\tms\proto\tms\web\src\main\webapp\resources\less\test.less]
C:\work\views\tms\proto\tms\web\build\styles

but no files are being copied over to the destination. any advice?

mspesit commented 8 years ago

I had the same problem Your destination folder location "dest" is not the same as your "source" folder location. The dest folder root is where you are running the command prompt from and where you run build.gradle. The source folder root is where a child build.gradle is invoked from the parent build.gradle.

mspesit commented 8 years ago

I am facing two problems

  1. The tasks combineCss and minifyCss do not run after running once unless i change the name of the target folder in the build.gradle file. They dont run even if i delete the target folder or rename the target folder. 2.If i create a folder structure for the output folder the same structure gets created at the parent level and the child level. Secondly The structure created at the child level is empty while the structure created at the paretn build.gradle level has the combined css file and the minified css file.