Considering gradle isn't even version 1.0 I think the documentation is
outstanding.  However have trouble understanding certain things.  For
example I came across the following code for creating a "fat" jar.

jar {
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}

It's a very concise piece of code considering how much it does but
there are things I'm struggling to understand about how it works.  My
first question is regarding the jar function.  I'm assuming this is a
reference to the jar task, but I'm not sure, maybe it's a reference to
a datastructure. I can see several references to this element in the
documentation but they don't seem to clearly explain this.

The other is the from function(?).  I wasn't able to find a reference
to this in the documentation.  Is it a built in groovy thing or is it
part of gradle?  What does it do and how does it work?

Any help appreciated.  Regards,

Glen Stampoultzis
[email protected]

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

    http://xircles.codehaus.org/manage_email


Reply via email to