I am trying to create a zip file from the project files but I cant
work out how to change the path of a resource in the final zip.
If I have a file in the directory: src/main/resources/readme/readme.txt
but I want to have it in the root of the zip file.
If I use:
task releaseZip(type: Zip) {
from(sourceSets.main.resources) {
include '**/readme.txt'
}
}
The readme.txt file ends up in the zip with the path "readme/readme.txt".
Is there a way to get this file to end up in the root of the project
without having to hard code the path eg:
task releaseZip(type: Zip) {
from 'src/main/resources/readme'
}
Thanks,
-Mike
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email