NAnt SDK Documentation - v0.85-nightly-2005-11-09

UnZipTask Class

[This is preliminary documentation and subject to change.]

Extracts files from a zip file.

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

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

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

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