On 7/12/2011 4:53 AM, Dave King wrote:
Hey Olivier the last time I looked the Java zip code could not update
a zip, so I think that's the limitation.
But the jar tool can clearly do it. I picked the Zip task in the spirit
of picking the simplest possible thing for demonstration purposes (Jar
builds upon Zip) but it is jar files I want to update, not zip files.
So here is test4.gradle using the Jar task, not Zip: same bogosity.
-- O.L.
apply plugin: 'java'
txtFiles = fileTree(dir: '.', include: '*.txt')
task jar1(type: Jar) {
baseName = 'test4'
from(txtFiles)
}
task jar2(type: Jar, dependsOn: 'jar1') {
baseName = tasks['jar1'].baseName
appendix = "upd"
from(zipTree(tasks['jar1'].archivePath))
from(txtFiles)
}
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email