I am trying to zip an entire directory in a groovy program. I have used the built in ant target to zip the directory and normally this works, except that sometimes 2-3 files are in use which I don't care about but the zip code actually aborts because of that - any ideas on how to fix this?
Thanks!
Code:
def ant = new AntBuilder()
ant.zip(
destfile: "C:/temp.zip",
basedir: "c:/Temp/"
)