1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<!-- Documenting T:NAnt.Compression.Tasks.TarTask-->
5
<meta http-equiv="Content-Language" content="en-ca" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<link rel="stylesheet" type="text/css" href="../style.css" />
8
<title><tar> Task</title>
11
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="NavBar">
13
<td class="NavBar-Cell">
14
<a href="http://nant.sourceforge.net">
17
<img alt="->" src="../images/arrow.gif" />
18
<a href="../index.html">Help</a>
19
<img alt="->" src="../images/arrow.gif" />
20
<a href="../tasks/index.html">Task Reference</a>
21
<img alt="->" src="../images/arrow.gif" /> <tar></td>
22
<td class="NavBar-Cell" align="right">
27
<p> Creates a tar file from the specified filesets. </p>
28
<p>Uses <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/">#ziplib</a> (SharpZipLib), an open source Tar/Zip/GZip library written entirely in C#.</p>
34
<th style="text-align: center;">Type</th>
36
<th style="text-align: center;">Required</th>
39
<td valign="top" class="required">destfile</td>
40
<td style="text-align: center;">file</td>
41
<td> The tar file to create. </td>
42
<td style="text-align: center;">True</td>
45
<td valign="top">compression</td>
46
<td style="text-align: center;">
47
<a href="../enums/NAnt.Compression.Types.TarCompressionMethod.html">TarCompressionMethod</a>
49
<td> The compression method. The default is <code>None</code>. </td>
50
<td style="text-align: center;">False</td>
53
<td valign="top">includeemptydirs</td>
54
<td style="text-align: center;">bool</td>
55
<td> Include empty directories in the generated tar file. The default is <b>false</b>. </td>
56
<td style="text-align: center;">False</td>
59
<td valign="top">failonerror</td>
60
<td style="text-align: center;">bool</td>
61
<td> Determines if task failure stops the build, or is just reported. The default is <b>true</b>. </td>
62
<td style="text-align: center;">False</td>
65
<td valign="top">if</td>
66
<td style="text-align: center;">bool</td>
67
<td> If <b>true</b> then the task will be executed; otherwise, skipped. The default is <b>true</b>. </td>
68
<td style="text-align: center;">False</td>
71
<td valign="top">unless</td>
72
<td style="text-align: center;">bool</td>
73
<td> Opposite of <code>if</code>. If <b>false</b> then the task will be executed; otherwise, skipped. The default is <b>false</b>. </td>
74
<td style="text-align: center;">False</td>
77
<td valign="top">verbose</td>
78
<td style="text-align: center;">bool</td>
79
<td> Determines whether the task should report detailed build log messages. The default is <b>false</b>. </td>
80
<td style="text-align: center;">False</td>
84
<h3>Nested Elements:</h3>
86
<!--NestedElementArray=T:NAnt.Compression.Types.TarFileSet-->
90
<<a href="../types/tarfileset.html">fileset</a>>
92
<div class="nested-element"> The set of files to be included in the archive. </div>
96
</<a href="../types/tarfileset.html">fileset</a>>
101
<p> Tar all files in <code>${build.dir}</code> and <code>${doc.dir}</code> into a file called "backup.tar.gz", and apply gzip compression to it. </p>
103
<tar destfile="backup.tar.gz" compression="GZip">
104
<fileset basedir="${bin.dir}" prefix="bin">
105
<include name="**/*" />
107
<fileset basedir="${doc.dir}" prefix="doc">
108
<include name="**/*" />
114
<h3>Requirements</h3>
115
<div style="margin-left: 20px;">
116
<b>Assembly:</b> NAnt.CompressionTasks (0.90.3780.0)
b'\\ No newline at end of file'