NAnt SDK Documentation - v0.92

UnZipTask Class

Extracts files from a zip archive.

For a list of all members of this type, see UnZipTask Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Compression.Tasks.ExpandBaseTask
            NAnt.Compression.Tasks.UnZipTask

[Visual Basic]
<TaskName(Name:="unzip")>
Public Class UnZipTask
    Inherits ExpandBaseTask
[C#]
[TaskName(Name="unzip")]
public class UnZipTask : ExpandBaseTask

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Uses #ziplib (SharpZipLib), an open source Zip/GZip library written entirely in C#.

Example

Extracts all the file from the zip, preserving the directory structure.

    
<unzip zipfile="backup.zip"/>
    
  

Requirements

Namespace: NAnt.Compression.Tasks

Assembly: NAnt.CompressionTasks (in NAnt.CompressionTasks.dll)

See Also

UnZipTask Members | NAnt.Compression.Tasks Namespace