gradle-css-plugin icon indicating copy to clipboard operation
gradle-css-plugin copied to clipboard

not copying to destination

Open jpope19 opened this issue 9 years ago • 2 comments

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?

jpope19 avatar Mar 06 '15 19:03 jpope19

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 avatar Aug 12 '16 16:08 mspesit

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.

mspesit avatar Aug 12 '16 16:08 mspesit