tag:blogger.com,1999:blog-24777909.post5531885101630109551..comments2023-10-07T09:57:12.981+01:00Comments on Preferisco - thoughts about Oracle, EAI/ETL and more: Using Groovy AntBuilder to zip / unzip filesNigelhttp://www.blogger.com/profile/10826219818302312878noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-24777909.post-7480774325862357262015-03-27T07:28:48.761+00:002015-03-27T07:28:48.761+00:00Thanks for the post!
If you need to use one of ...Thanks for the post! <br /><br />If you need to use one of the mappers which doesn't have a <mapper type>, such as <cutdirsmapper dirs="1"/>, you can use something like this:<br /><br />ant.untar(src: f, dest: target, <br /> compression: 'gzip', failOnEmptyArchive: true, overwrite: true) {cutdirsmapper(dirs: 1)}Sean Flaniganhttps://www.blogger.com/profile/13615385115176751260noreply@blogger.comtag:blogger.com,1999:blog-24777909.post-50090808964744918702015-01-09T09:49:15.823+00:002015-01-09T09:49:15.823+00:00For pattern set please find the example
ant.unzi...For pattern set please find the example <br /><br />ant.unzip(src : jarFile, dest: privateClasspath) {<br /> patternset() {<br /> exclude(name: "**/org/eclipse/jetty/continuation/Jetty6Continuation.class")<br /> <br /> }<br /> }nikhilhttps://www.blogger.com/profile/05546647889505662991noreply@blogger.com