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.UnZipTask-->
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><unzip> 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" /> <unzip></td>
22
<td class="NavBar-Cell" align="right">
26
<h1><unzip></h1>
27
<p> Extracts files from a zip archive. </p>
28
<p> Uses <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/">#ziplib</a> (SharpZipLib), an open source 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">zipfile</td>
40
<td style="text-align: center;">file</td>
41
<td> The archive file to expand. </td>
42
<td style="text-align: center;">True</td>
45
<td valign="top">encoding</td>
46
<td style="text-align: center;">
47
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTextEncodingClassTopic.asp">Encoding</a>
49
<td> The character encoding that has been used for filenames inside the zip file. The default is the system's OEM code page. </td>
50
<td style="text-align: center;">False</td>
53
<td valign="top">todir</td>
54
<td style="text-align: center;">directory</td>
55
<td> The directory where the expanded files should be stored. The default is the project base directory. </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">overwrite</td>
72
<td style="text-align: center;">bool</td>
73
<td> Overwrite files, even if they are newer than the corresponding entries in the archive. The default is <b>true</b>. </td>
74
<td style="text-align: center;">False</td>
77
<td valign="top">unless</td>
78
<td style="text-align: center;">bool</td>
79
<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>
80
<td style="text-align: center;">False</td>
83
<td valign="top">verbose</td>
84
<td style="text-align: center;">bool</td>
85
<td> Determines whether the task should report detailed build log messages. The default is <b>false</b>. </td>
86
<td style="text-align: center;">False</td>
93
<p>Extracts all the file from the zip, preserving the directory structure.</p>
95
<unzip zipfile="backup.zip"/>
100
<div style="margin-left: 20px;">
101
<b>Assembly:</b> NAnt.CompressionTasks (0.90.3780.0)
b'\\ No newline at end of file'