I have a simple task that loops through the files in my configuration. This configuration has a few zip files in it. I need to explode these zips into a certain directory on my filesystem. This is how I am trying to do it:
task pullDownPatches4FA << {
configurations.p4faArchive.each { File theZip ->
println ('FILENAME: ' + theZip.name)
copy {
println 'Inside copy task...'
from zipTree (theZip)
println ('The size is: ' + theZip.size())
into '../patches4fa/dist'
}
}
}
This spits out something like this:
Dynamic properties are deprecated: http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
Deprecated dynamic property: "env" on "root project 'fainteg'", value: "{OPATCH_LABEL=OPATCH_1...".
:clean UP-TO-DATE
:pullDownPatches4FA
FILENAME: patches4fa-PATCHES4FA_PT.POC1_PLATFORMS_120820.2234.S.zip
Inside copy task...
The size is: 262379520
FILENAME: biinst-12.1.2.0.zip
Inside copy task...
The size is: 18158066
BUILD SUCCESSFUL
Total time: 6.773 secs
But when I look under the target directory I only see that the small 18MB zip file was exploded. The 262MB zip and the 7gig zip (not shown above) were not exploded. They were seemingly just skipped over.
What happened here? Is there some file size limit on the zipTree?
Thanks!