I am attempting to aggregate a bunch of PDF files in subproject doscDir folders
into a single zip file. Here is my task definition:
task aggregatePDFJavadoc(type: Zip) {
source = files(subprojects.collect { project ->
fileTree(dir: project.docsDir.absolutePath)
})
includes = ["**/*.pdf"]
}
The PDF files are there, but apparently the source FileCollection is empty (as
indicated by a simple source.each {println it} statement). The zip is therefore
empty.
Any insight into the appropriate configuration is appreciated.
Thanks.