Hi there,
I've just added a new zip Task to my project. This task should create a zip with all third-party libs in the lib folder of that zip. actually my task looks like the following:

task createBinZip(type: Zip) {
        classifier = 'bin'
        
        files(configurations.groovy)
        
        
        fileSet(dir: 'build'){
                include "**/*.jar"
        }

        fileSet(dir: 'build/classes'){
                include "**/*.sh"
        }
}

In the snippet above I add all files in the configuration groovy to my zip. but how can I put all these third party libs to a special folder in that zip for example called "libs".
And can anybody explain, what's the difference between:

files(configurations.groovy) and just
configurations.groovy ?

In Section 15.12. of the gradle docs I've found the following sentence: "For example, the Configuration objects of a project implement FileCollection . You can also obtain a FileCollection using the method Project.files()"

So instead of writing "files(configurations.groovy)" shouldn't it be enough to write "configurations.groovy" in my zip task? What is the meaning of "FileCollection Project.files(FileCollection fc)" ?

Thx.

regards,
René
-----------------------------------
René Gröschke
[email protected]
http://www.breskeby.com





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to