Creates a tar file from the specified filesets.
For a list of all members of this type, see TarTask Members.
System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Compression.Tasks.TarTask
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Uses #ziplib (SharpZipLib), an open source Tar/Zip/GZip library written entirely in C#.
Tar all files in ${build.dir}
and ${doc.dir}
into a file called "backup.tar.gz", and apply gzip compression to it.
<tar destfile="backup.tar.gz" compression="GZip"> <fileset basedir="${bin.dir}" prefix="bin"> <include name="**/*" /> </fileset> <fileset basedir="${doc.dir}" prefix="doc"> <include name="**/*" /> </fileset> </tar>
Namespace: NAnt.Compression.Tasks
Assembly: NAnt.CompressionTasks (in NAnt.CompressionTasks.dll)
TarTask Members | NAnt.Compression.Tasks Namespace