File Compression
Creating a zip file using AntBuilder.
def ant = new AntBuilder() ant.zip( destfile: destPath, basedir: basePath, includes: includeFiles, // Comma seperated file names excludes: excludeFiles, // Comma seperated file names level: 9 // maximum compression )
def ant = new AntBuilder();
ant.unzip(
src: srcPath,
dest: destDir,
overwrite: "true"
)
Hope this helped!
Cheers!
Anshul Sharma