Hi all,
When I exclude files in a zip task, empty directories are not created in the
resulting zip file.
configurations {
zipFile
}
dependencies {
zipFile 'com.somewhere:zipfile:1.0@zip'
}
task dist(type: Zip) {
from zipTree(configurations.zipFile.asPath)
exclude (
'*/tomcat-*/temp/**',
'*/tomcat-*/data/**',
)
}
In the source zip file there are two directories (temp, data) that contain
files, but I would like to exclude these files. I expect the resulting zip
file to have two empty directories named 'temp' and 'data' in the 'tomcat-*'
directory. Unfortunately, these directories are missing. Am I overlooking
something?
cheers,
--L