groovycode.com

Create a zip file with AntBuilder

create a zipfile with the groovy AntBuilder

1 def ant = new AntBuilder()
2 ant.zip(destfile: "target.zip",
3 basedir: "source-directory",
4 includes: "**/*.txt",
5 excludes: "**/*.doc")

tags: io zip antbuilder