NAnt SDK Documentation - v0.92

UnTarTask Class

Extracts files from a tar archive.

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

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

[Visual Basic]
<TaskName(Name:="untar")>
Public Class UnTarTask
    Inherits ExpandBaseTask
[C#]
[TaskName(Name="untar")]
public class UnTarTask : 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 files from a gzipped tar, preserving the directory structure.

    
<untar src="nant-bin.tar.gz" dest="bin" compression="gzip" />
    
  

Requirements

Namespace: NAnt.Compression.Tasks

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

See Also

UnTarTask Members | NAnt.Compression.Tasks Namespace