Skip to content
AnthonyMastrean edited this page Mar 5, 2013 · 3 revisions

The UnZipTask allows you to unzip files in an archive

How to use the UnZipTask

The unzip task has a number of properties to find the files to zip and where to save the output.
- file – this is the filename of the zip
- destination – Where you want the contents of the zip to be extracted to. In this example, it is the same directory as your build file.
- force – (optional, default=false) when set true it will delete each target file before unzipping from .zip file to destination.

unzip do |unzip|
  unzip.destination = File.dirname __FILE__
  unzip.file = 'Archive.zip'
  unzip.force
end

Albacore

Meta & Config

Tasks

Dev & Docs

Clone this wiki locally