The following worked for me however I am using a Jar rather than a Zip:
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
--Ken
On Fri, Oct 15, 2010 at 8:53 AM, Etienne Studer <[email protected]>wrote:
> Hi
>
> I'm trying to create a zip task in order to zip the sources of all my
> source sets. How do I achieve this? The following things don't work:
>
> // without tests
> task zip(type: Zip) {
> classifier = 'src'
> from project.sourceSets.main.java.srcDirs
> }
>
> // with tests
> task zip(type: Zip) {
> classifier = 'src'
> from project.sourceSets
> }
>
> Thanks for any help, Etienne
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>