Archive

def dest = fs.tempDir("for-zip").resolve("content.zip") fs.zip('data/staticcontent', dest)

Un-archive

def dir = fs.tempDir('for-unzip') fs.unzip('data/data.zip', dir) def dir = fs.tempDir('for-untar') fs.untar('data/data.tar', dir)