Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

not copying to destination #36

Open
jpope19 opened this issue Mar 6, 2015 · 2 comments
Open

not copying to destination #36

jpope19 opened this issue Mar 6, 2015 · 2 comments

Comments

@jpope19
Copy link

jpope19 commented Mar 6, 2015

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
Copy link

mspesit commented Aug 12, 2016

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
Copy link

mspesit commented Aug 12, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants