Oh, sorry, it tested it with a plain input folder rather than with the FileCollection.
In this case one of the ways is: task releaseZip(type: Zip) { from(sourceSets.main.resources.files) { include 'readme.txt' } } Cheers! 2011/7/18 Mike Mills <purdah...@gmail.com>: > Szczepan, > > I have tried this snippet, but unfortunately it does not work. > > If you comment out the eachFile line, then the readme.txt ends up as > before. But with the eachFile line the readme.txt file is not included > in the zip file at all. > > Running gradle with the -d flag seems to give no output relevant to > creating the zip file. > > Is there anything I can do to investigate this further? > > -Mike > > 2011/7/16 Szczepan Faber <szcze...@gmail.com>: >> How about this: >> >> task releaseZip(type: Zip) { >> from(sourceSets.main.resources) { >> include '**/readme.txt' >> eachFile { it.path = '.' } >> } >> } >> >> Cheers! >> >> 2011/7/15 Szczepan Faber <szcze...@gmail.com>: >>> Yes, there is. Try browsing the mailing list. When I'm back home I will >>> write some more. Cannot browse the docs easily from my mobile :) >>> >>> Cheers! >>> -- >>> Szczepan Faber >>> Principal engineer@gradleware >>> Lead@mockito >>> >>> 15-07-2011 07:20 użytkownik "Mike Mills" <purdah...@gmail.com> napisał: >>> >> >> >> >> -- >> Szczepan Faber >> Principal engineer@gradleware >> Lead@mockito >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Szczepan Faber Principal engineer@gradleware Lead@mockito --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email