????

Your IP : 216.73.216.152


Current Path : /opt/ant/manual/api/org/apache/tools/ant/taskdefs/
Upload File :
Current File : //opt/ant/manual/api/org/apache/tools/ant/taskdefs/Zip.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue May 22 06:24:53 CEST 2012 -->
<title>Zip (Apache Ant API)</title>
<meta name="date" content="2012-05-22">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Zip (Apache Ant API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/XSLTProcess.TraceConfiguration.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/tools/ant/taskdefs/Zip.html" target="_top">Frames</a></li>
<li><a href="Zip.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.tools.ant.taskdefs</div>
<h2 title="Class Zip" class="title">Class Zip</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">org.apache.tools.ant.taskdefs.MatchingTask</a></li>
<li>
<ul class="inheritance">
<li>org.apache.tools.ant.taskdefs.Zip</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Cloneable, <a href="../../../../../org/apache/tools/ant/types/selectors/SelectorContainer.html" title="interface in org.apache.tools.ant.types.selectors">SelectorContainer</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/tools/ant/taskdefs/Jar.html" title="class in org.apache.tools.ant.taskdefs">Jar</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Zip</span>
extends <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</a></pre>
<div class="block">Create a Zip file.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.1</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a></strong></code>
<div class="block">Holds the up-to-date status and the out-of-date resources of
 the original archive.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</a></strong></code>
<div class="block">Possible behaviors when a duplicate file is added:
 "add", "preserve" or "fail"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.UnicodeExtraField.html" title="class in org.apache.tools.ant.taskdefs">Zip.UnicodeExtraField</a></strong></code>
<div class="block">Policiy for creation of Unicode extra fields: never, always or
 not-encodeable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</a></strong></code>
<div class="block">Possible behaviors when there are no matching files for the task:
 "fail", "skip", or "create".</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Hashtable</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addedDirs">addedDirs</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#archiveType">archiveType</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#doubleFilePass">doubleFilePass</a></strong></code>
<div class="block">If this flag is true, execute() will run most operations twice,
 the first time with <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#skipWriting"><code>skipWriting</code></a> set to
 true and the second time with setting it to false.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#duplicate">duplicate</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#emptyBehavior">emptyBehavior</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.Hashtable</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#entries">entries</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#skipWriting">skipWriting</a></strong></code>
<div class="block">whether the methods should just perform some sort of dry-run.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.io.File</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile">zipFile</a></strong></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.taskdefs.MatchingTask">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.tools.ant.taskdefs.<a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</a></h3>
<code><a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#fileset">fileset</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.Task">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../org/apache/tools/ant/Task.html#target">target</a>, <a href="../../../../../org/apache/tools/ant/Task.html#taskName">taskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#taskType">taskType</a>, <a href="../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../org/apache/tools/ant/ProjectComponent.html#description">description</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#location">location</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#Zip()">Zip</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#add(org.apache.tools.ant.types.ResourceCollection)">add</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>&nbsp;a)</code>
<div class="block">Add a collection of resources to be archived.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addFileset(org.apache.tools.ant.types.FileSet)">addFileset</a></strong>(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;set)</code>
<div class="block">Adds a set of files.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addParentDirs(java.io.File, java.lang.String, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">addParentDirs</a></strong>(java.io.File&nbsp;baseDir,
             java.lang.String&nbsp;entry,
             <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
             java.lang.String&nbsp;prefix,
             int&nbsp;dirMode)</code>
<div class="block">Ensure all parent dirs of a given entry have been added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addResources(org.apache.tools.ant.types.FileSet, org.apache.tools.ant.types.Resource[], org.apache.tools.zip.ZipOutputStream)">addResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;fileset,
            <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;resources,
            <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)</code>
<div class="block">Add the given resources.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addResources(org.apache.tools.ant.types.ResourceCollection, org.apache.tools.ant.types.Resource[], org.apache.tools.zip.ZipOutputStream)">addResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>&nbsp;rc,
            <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;resources,
            <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)</code>
<div class="block">Add the given resources.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addZipfileset(org.apache.tools.ant.types.ZipFileSet)">addZipfileset</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ZipFileSet.html" title="class in org.apache.tools.ant.types">ZipFileSet</a>&nbsp;set)</code>
<div class="block">Adds a set of files that can be
 read from an archive and be given a prefix/fullpath.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addZipGroupFileset(org.apache.tools.ant.types.FileSet)">addZipGroupFileset</a></strong>(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;set)</code>
<div class="block">Adds a group of zip files.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#cleanUp()">cleanUp</a></strong>()</code>
<div class="block">Do any clean up necessary to allow this instance to be used again.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#createEmptyZip(java.io.File)">createEmptyZip</a></strong>(java.io.File&nbsp;zipFile)</code>
<div class="block">Create an empty zip file</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#execute()">execute</a></strong>()</code>
<div class="block">validate and build</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#executeMain()">executeMain</a></strong>()</code>
<div class="block">Build the zip file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#finalizeZipOutputStream(org.apache.tools.zip.ZipOutputStream)">finalizeZipOutputStream</a></strong>(<a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)</code>
<div class="block">method for subclasses to override</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getComment()">getComment</a></strong>()</code>
<div class="block">Comment of the archive</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.UnicodeExtraField.html" title="class in org.apache.tools.ant.taskdefs">Zip.UnicodeExtraField</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getCreateUnicodeExtraFields()">getCreateUnicodeExtraFields</a></strong>()</code>
<div class="block">Whether Unicode extra fields will be created.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getCurrentExtraFields()">getCurrentExtraFields</a></strong>()</code>
<div class="block">Provides the extra fields for the zip entry currently being
 added to the archive - if any.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.io.File</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getDestFile()">getDestFile</a></strong>()</code>
<div class="block">The file to create.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getEncoding()">getEncoding</a></strong>()</code>
<div class="block">Encoding to use for filenames.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getFallBackToUTF8()">getFallBackToUTF8</a></strong>()</code>
<div class="block">Whether to fall back to UTF-8 if a name cannot be enoded using
 the specified encoding.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getLevel()">getLevel</a></strong>()</code>
<div class="block">Get the compression level.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getNonFileSetResourcesToAdd(org.apache.tools.ant.types.ResourceCollection[], java.io.File, boolean)">getNonFileSetResourcesToAdd</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs,
                           java.io.File&nbsp;zipFile,
                           boolean&nbsp;needsUpdate)</code>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getPreserve0Permissions()">getPreserve0Permissions</a></strong>()</code>
<div class="block">Assume 0 Unix mode is intentional.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getResourcesToAdd(org.apache.tools.ant.types.FileSet[], java.io.File, boolean)">getResourcesToAdd</a></strong>(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>[]&nbsp;filesets,
                 java.io.File&nbsp;zipFile,
                 boolean&nbsp;needsUpdate)</code>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getResourcesToAdd(org.apache.tools.ant.types.ResourceCollection[], java.io.File, boolean)">getResourcesToAdd</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs,
                 java.io.File&nbsp;zipFile,
                 boolean&nbsp;needsUpdate)</code>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getUseLanguageEnodingFlag()">getUseLanguageEnodingFlag</a></strong>()</code>
<div class="block">Whether the language encoding flag will be used.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#grabNonFileSetResources(org.apache.tools.ant.types.ResourceCollection[])">grabNonFileSetResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs)</code>
<div class="block">Fetch all included and not excluded resources from the collections.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#grabResources(org.apache.tools.ant.types.FileSet[])">grabResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>[]&nbsp;filesets)</code>
<div class="block">Fetch all included and not excluded resources from the sets.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#hasUpdatedFile()">hasUpdatedFile</a></strong>()</code>
<div class="block">Get the value of the updatedFile attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#initZipOutputStream(org.apache.tools.zip.ZipOutputStream)">initZipOutputStream</a></strong>(<a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)</code>
<div class="block">method for subclasses to override</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isAddingNewFiles()">isAddingNewFiles</a></strong>()</code>
<div class="block">Indicates if the task is adding new files into the archive as opposed to
 copying back unchanged files from the backup copy</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isCompress()">isCompress</a></strong>()</code>
<div class="block">Whether we want to compress the files or only store them;</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isEmpty(org.apache.tools.ant.types.Resource[][])">isEmpty</a></strong>(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]&nbsp;r)</code>
<div class="block">Check is the resource arrays are empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isFirstPass()">isFirstPass</a></strong>()</code>
<div class="block">Whether this is the first time the archive building methods are invoked.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isInUpdateMode()">isInUpdateMode</a></strong>()</code>
<div class="block">Are we updating an existing archive?</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#logWhenWriting(java.lang.String, int)">logWhenWriting</a></strong>(java.lang.String&nbsp;msg,
              int&nbsp;level)</code>
<div class="block">Logs a message at the given output level, but only if this is
 the pass that will actually create the archive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#reset()">reset</a></strong>()</code>
<div class="block">Makes this instance reset all attributes to their default
 values and forget all children.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#selectDirectoryResources(org.apache.tools.ant.types.Resource[])">selectDirectoryResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig)</code>
<div class="block">Drops all non-directory resources from the given array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#selectFileResources(org.apache.tools.ant.types.Resource[])">selectFileResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig)</code>
<div class="block">Drops all non-file resources from the given array.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#selectResources(org.apache.tools.ant.types.Resource[], org.apache.tools.ant.types.resources.selectors.ResourceSelector)">selectResources</a></strong>(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig,
               <a href="../../../../../org/apache/tools/ant/types/resources/selectors/ResourceSelector.html" title="interface in org.apache.tools.ant.types.resources.selectors">ResourceSelector</a>&nbsp;selector)</code>
<div class="block">Drops all resources from the given array that are not selected</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setBasedir(java.io.File)">setBasedir</a></strong>(java.io.File&nbsp;baseDir)</code>
<div class="block">Directory from which to archive files; optional.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setComment(java.lang.String)">setComment</a></strong>(java.lang.String&nbsp;comment)</code>
<div class="block">Comment to use for archive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setCompress(boolean)">setCompress</a></strong>(boolean&nbsp;c)</code>
<div class="block">Whether we want to compress the files or only store them;
 optional, default=true;</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setCreateUnicodeExtraFields(org.apache.tools.ant.taskdefs.Zip.UnicodeExtraField)">setCreateUnicodeExtraFields</a></strong>(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.UnicodeExtraField.html" title="class in org.apache.tools.ant.taskdefs">Zip.UnicodeExtraField</a>&nbsp;b)</code>
<div class="block">Whether Unicode extra fields will be created.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setCurrentExtraFields(org.apache.tools.zip.ZipExtraField[])">setCurrentExtraFields</a></strong>(<a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)</code>
<div class="block">Sets the extra fields for the zip entry currently being
 added to the archive - if any.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setDestFile(java.io.File)">setDestFile</a></strong>(java.io.File&nbsp;destFile)</code>
<div class="block">The file to create; required.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setDuplicate(org.apache.tools.ant.taskdefs.Zip.Duplicate)">setDuplicate</a></strong>(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</a>&nbsp;df)</code>
<div class="block">Sets behavior for when a duplicate file is about to be added -
 one of <code>add</code>, <code>preserve</code> or <code>fail</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setEncoding(java.lang.String)">setEncoding</a></strong>(java.lang.String&nbsp;encoding)</code>
<div class="block">Encoding to use for filenames, defaults to the platform's
 default encoding.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setFallBackToUTF8(boolean)">setFallBackToUTF8</a></strong>(boolean&nbsp;b)</code>
<div class="block">Whether to fall back to UTF-8 if a name cannot be enoded using
 the specified encoding.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setFile(java.io.File)">setFile</a></strong>(java.io.File&nbsp;file)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>since 1.5.x.
             Use setDestFile(File) instead.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setFilesonly(boolean)">setFilesonly</a></strong>(boolean&nbsp;f)</code>
<div class="block">If true, emulate Sun's jar utility by not adding parent directories;
 optional, defaults to false.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setKeepCompression(boolean)">setKeepCompression</a></strong>(boolean&nbsp;keep)</code>
<div class="block">Whether the original compression of entries coming from a ZIP
 archive should be kept (for example when updating an archive).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setLevel(int)">setLevel</a></strong>(int&nbsp;level)</code>
<div class="block">Set the compression level to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setPreserve0Permissions(boolean)">setPreserve0Permissions</a></strong>(boolean&nbsp;b)</code>
<div class="block">Assume 0 Unix mode is intentional.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setRoundUp(boolean)">setRoundUp</a></strong>(boolean&nbsp;r)</code>
<div class="block">Whether the file modification times will be rounded up to the
 next even number of seconds.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setUpdate(boolean)">setUpdate</a></strong>(boolean&nbsp;c)</code>
<div class="block">If true, updates an existing file, otherwise overwrite
 any existing one; optional defaults to false.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setUseLanguageEncodingFlag(boolean)">setUseLanguageEncodingFlag</a></strong>(boolean&nbsp;b)</code>
<div class="block">Whether to set the language encoding flag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setWhenempty(org.apache.tools.ant.taskdefs.Zip.WhenEmpty)">setWhenempty</a></strong>(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</a>&nbsp;we)</code>
<div class="block">Sets behavior of the task when no files match.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setZipfile(java.io.File)">setZipfile</a></strong>(java.io.File&nbsp;zipFile)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>since 1.5.x.
             Use setDestFile(File) instead.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">zipDir</a></strong>(java.io.File&nbsp;dir,
      <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
      java.lang.String&nbsp;vPath,
      int&nbsp;mode)</code>
<div class="block">Add a directory to the zip stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int, org.apache.tools.zip.ZipExtraField[])">zipDir</a></strong>(java.io.File&nbsp;dir,
      <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
      java.lang.String&nbsp;vPath,
      int&nbsp;mode,
      <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)</code>
<div class="block">Add a directory to the zip stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipDir(org.apache.tools.ant.types.Resource, org.apache.tools.zip.ZipOutputStream, java.lang.String, int, org.apache.tools.zip.ZipExtraField[])">zipDir</a></strong>(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>&nbsp;dir,
      <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
      java.lang.String&nbsp;vPath,
      int&nbsp;mode,
      <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)</code>
<div class="block">Add a directory to the zip stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">zipFile</a></strong>(java.io.File&nbsp;file,
       <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
       java.lang.String&nbsp;vPath,
       int&nbsp;mode)</code>
<div class="block">Method that gets called when adding from <code>java.io.File</code> instances.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile(java.io.InputStream, org.apache.tools.zip.ZipOutputStream, java.lang.String, long, java.io.File, int)">zipFile</a></strong>(java.io.InputStream&nbsp;in,
       <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
       java.lang.String&nbsp;vPath,
       long&nbsp;lastModified,
       java.io.File&nbsp;fromArchive,
       int&nbsp;mode)</code>
<div class="block">Adds a new entry to the archive, takes care of duplicates as well.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile(java.io.InputStream, org.apache.tools.zip.ZipOutputStream, java.lang.String, long, java.io.File, int, org.apache.tools.zip.ZipExtraField[])">zipFile</a></strong>(java.io.InputStream&nbsp;in,
       <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
       java.lang.String&nbsp;vPath,
       long&nbsp;lastModified,
       java.io.File&nbsp;fromArchive,
       int&nbsp;mode,
       <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)</code>
<div class="block">Adds a new entry to the archive, takes care of duplicates as well.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.taskdefs.MatchingTask">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.tools.ant.taskdefs.<a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</a></h3>
<code><a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#add(org.apache.tools.ant.types.selectors.FileSelector)">add</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addAnd(org.apache.tools.ant.types.selectors.AndSelector)">addAnd</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addContains(org.apache.tools.ant.types.selectors.ContainsSelector)">addContains</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addContainsRegexp(org.apache.tools.ant.types.selectors.ContainsRegexpSelector)">addContainsRegexp</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addCustom(org.apache.tools.ant.types.selectors.ExtendSelector)">addCustom</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addDate(org.apache.tools.ant.types.selectors.DateSelector)">addDate</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addDepend(org.apache.tools.ant.types.selectors.DependSelector)">addDepend</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addDepth(org.apache.tools.ant.types.selectors.DepthSelector)">addDepth</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addDifferent(org.apache.tools.ant.types.selectors.DifferentSelector)">addDifferent</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addFilename(org.apache.tools.ant.types.selectors.FilenameSelector)">addFilename</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addMajority(org.apache.tools.ant.types.selectors.MajoritySelector)">addMajority</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addModified(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector)">addModified</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addNone(org.apache.tools.ant.types.selectors.NoneSelector)">addNone</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addNot(org.apache.tools.ant.types.selectors.NotSelector)">addNot</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addOr(org.apache.tools.ant.types.selectors.OrSelector)">addOr</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addPresent(org.apache.tools.ant.types.selectors.PresentSelector)">addPresent</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addSelector(org.apache.tools.ant.types.selectors.SelectSelector)">addSelector</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addSize(org.apache.tools.ant.types.selectors.SizeSelector)">addSize</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#addType(org.apache.tools.ant.types.selectors.TypeSelector)">addType</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#appendSelector(org.apache.tools.ant.types.selectors.FileSelector)">appendSelector</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#createExclude()">createExclude</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#createExcludesFile()">createExcludesFile</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#createInclude()">createInclude</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#createIncludesFile()">createIncludesFile</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#createPatternSet()">createPatternSet</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#getDirectoryScanner(java.io.File)">getDirectoryScanner</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#getImplicitFileSet()">getImplicitFileSet</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#getSelectors(org.apache.tools.ant.Project)">getSelectors</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#hasSelectors()">hasSelectors</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#selectorCount()">selectorCount</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#selectorElements()">selectorElements</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setCaseSensitive(boolean)">setCaseSensitive</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setDefaultexcludes(boolean)">setDefaultexcludes</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setExcludes(java.lang.String)">setExcludes</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setExcludesfile(java.io.File)">setExcludesfile</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setFollowSymlinks(boolean)">setFollowSymlinks</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setIncludes(java.lang.String)">setIncludes</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setIncludesfile(java.io.File)">setIncludesfile</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#setProject(org.apache.tools.ant.Project)">setProject</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#XsetIgnore(java.lang.String)">XsetIgnore</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#XsetItems(java.lang.String)">XsetItems</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.Task">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../org/apache/tools/ant/Task.html#bindToOwner(org.apache.tools.ant.Task)">bindToOwner</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#init()">init</a>, <a href="../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, java.lang.Throwable, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.Throwable, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</a>, <a href="../../../../../org/apache/tools/ant/Task.html#perform()">perform</a>, <a href="../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../org/apache/tools/ant/ProjectComponent.html#clone()">clone</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getDescription()">getDescription</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getLocation()">getLocation</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#setDescription(java.lang.String)">setDescription</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#setLocation(org.apache.tools.ant.Location)">setLocation</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="zipFile">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipFile</h4>
<pre>protected&nbsp;java.io.File zipFile</pre>
</li>
</ul>
<a name="entries">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entries</h4>
<pre>protected&nbsp;java.util.Hashtable entries</pre>
</li>
</ul>
<a name="duplicate">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>duplicate</h4>
<pre>protected&nbsp;java.lang.String duplicate</pre>
</li>
</ul>
<a name="archiveType">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>archiveType</h4>
<pre>protected&nbsp;java.lang.String archiveType</pre>
</li>
</ul>
<a name="emptyBehavior">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>emptyBehavior</h4>
<pre>protected&nbsp;java.lang.String emptyBehavior</pre>
</li>
</ul>
<a name="addedDirs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addedDirs</h4>
<pre>protected&nbsp;java.util.Hashtable addedDirs</pre>
</li>
</ul>
<a name="doubleFilePass">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleFilePass</h4>
<pre>protected&nbsp;boolean doubleFilePass</pre>
<div class="block">If this flag is true, execute() will run most operations twice,
 the first time with <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#skipWriting"><code>skipWriting</code></a> set to
 true and the second time with setting it to false.

 <p>The only situation in Ant's current code base where this is
 ever going to be true is if the jar task has been configured
 with a filesetmanifest other than "skip".</p></div>
</li>
</ul>
<a name="skipWriting">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>skipWriting</h4>
<pre>protected&nbsp;boolean skipWriting</pre>
<div class="block">whether the methods should just perform some sort of dry-run.

 <p>Will only ever be true in the first pass if the task
 performs two passes because <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#doubleFilePass"><code>doubleFilePass</code></a> is true.</p></div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Zip()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Zip</h4>
<pre>public&nbsp;Zip()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="isFirstPass()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFirstPass</h4>
<pre>protected final&nbsp;boolean&nbsp;isFirstPass()</pre>
<div class="block">Whether this is the first time the archive building methods are invoked.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if either <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#doubleFilePass"><code>doubleFilePass</code></a>
 is false or <a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#skipWriting"><code>skipWriting</code></a> is true.</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setZipfile(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setZipfile</h4>
<pre>public&nbsp;void&nbsp;setZipfile(java.io.File&nbsp;zipFile)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>since 1.5.x.
             Use setDestFile(File) instead.</i></div>
<div class="block">This is the name/location of where to
 create the .zip file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zipFile</code> - the path of the zipFile</dd></dl>
</li>
</ul>
<a name="setFile(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFile</h4>
<pre>public&nbsp;void&nbsp;setFile(java.io.File&nbsp;file)</pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>since 1.5.x.
             Use setDestFile(File) instead.</i></div>
<div class="block">This is the name/location of where to
 create the file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the path of the zipFile</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5</dd></dl>
</li>
</ul>
<a name="setDestFile(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDestFile</h4>
<pre>public&nbsp;void&nbsp;setDestFile(java.io.File&nbsp;destFile)</pre>
<div class="block">The file to create; required.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>destFile</code> - The new destination File</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5</dd></dl>
</li>
</ul>
<a name="getDestFile()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDestFile</h4>
<pre>public&nbsp;java.io.File&nbsp;getDestFile()</pre>
<div class="block">The file to create.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the destination file</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="setBasedir(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBasedir</h4>
<pre>public&nbsp;void&nbsp;setBasedir(java.io.File&nbsp;baseDir)</pre>
<div class="block">Directory from which to archive files; optional.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>baseDir</code> - the base directory</dd></dl>
</li>
</ul>
<a name="setCompress(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCompress</h4>
<pre>public&nbsp;void&nbsp;setCompress(boolean&nbsp;c)</pre>
<div class="block">Whether we want to compress the files or only store them;
 optional, default=true;</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>c</code> - if true, compress the files</dd></dl>
</li>
</ul>
<a name="isCompress()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCompress</h4>
<pre>public&nbsp;boolean&nbsp;isCompress()</pre>
<div class="block">Whether we want to compress the files or only store them;</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if the files are to be compressed</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="setFilesonly(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFilesonly</h4>
<pre>public&nbsp;void&nbsp;setFilesonly(boolean&nbsp;f)</pre>
<div class="block">If true, emulate Sun's jar utility by not adding parent directories;
 optional, defaults to false.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - if true, emulate sun's jar by not adding parent directories</dd></dl>
</li>
</ul>
<a name="setUpdate(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUpdate</h4>
<pre>public&nbsp;void&nbsp;setUpdate(boolean&nbsp;c)</pre>
<div class="block">If true, updates an existing file, otherwise overwrite
 any existing one; optional defaults to false.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>c</code> - if true, updates an existing zip file</dd></dl>
</li>
</ul>
<a name="isInUpdateMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInUpdateMode</h4>
<pre>public&nbsp;boolean&nbsp;isInUpdateMode()</pre>
<div class="block">Are we updating an existing archive?</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if updating an existing archive</dd></dl>
</li>
</ul>
<a name="addFileset(org.apache.tools.ant.types.FileSet)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addFileset</h4>
<pre>public&nbsp;void&nbsp;addFileset(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;set)</pre>
<div class="block">Adds a set of files.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>set</code> - the fileset to add</dd></dl>
</li>
</ul>
<a name="addZipfileset(org.apache.tools.ant.types.ZipFileSet)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addZipfileset</h4>
<pre>public&nbsp;void&nbsp;addZipfileset(<a href="../../../../../org/apache/tools/ant/types/ZipFileSet.html" title="class in org.apache.tools.ant.types">ZipFileSet</a>&nbsp;set)</pre>
<div class="block">Adds a set of files that can be
 read from an archive and be given a prefix/fullpath.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>set</code> - the zipfileset to add</dd></dl>
</li>
</ul>
<a name="add(org.apache.tools.ant.types.ResourceCollection)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;void&nbsp;add(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>&nbsp;a)</pre>
<div class="block">Add a collection of resources to be archived.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - the resources to archive</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="addZipGroupFileset(org.apache.tools.ant.types.FileSet)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addZipGroupFileset</h4>
<pre>public&nbsp;void&nbsp;addZipGroupFileset(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;set)</pre>
<div class="block">Adds a group of zip files.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>set</code> - the group (a fileset) to add</dd></dl>
</li>
</ul>
<a name="setDuplicate(org.apache.tools.ant.taskdefs.Zip.Duplicate)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDuplicate</h4>
<pre>public&nbsp;void&nbsp;setDuplicate(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</a>&nbsp;df)</pre>
<div class="block">Sets behavior for when a duplicate file is about to be added -
 one of <code>add</code>, <code>preserve</code> or <code>fail</code>.
 Possible values are: <code>add</code> (keep both
 of the files); <code>preserve</code> (keep the first version
 of the file found); <code>fail</code> halt a problem
 Default for zip tasks is <code>add</code></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>df</code> - a <code>Duplicate</code> enumerated value</dd></dl>
</li>
</ul>
<a name="setWhenempty(org.apache.tools.ant.taskdefs.Zip.WhenEmpty)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWhenempty</h4>
<pre>public&nbsp;void&nbsp;setWhenempty(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</a>&nbsp;we)</pre>
<div class="block">Sets behavior of the task when no files match.
 Possible values are: <code>fail</code> (throw an exception
 and halt the build); <code>skip</code> (do not create
 any archive, but issue a warning); <code>create</code>
 (make an archive with no entries).
 Default for zip tasks is <code>skip</code>;
 for jar tasks, <code>create</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>we</code> - a <code>WhenEmpty</code> enumerated value</dd></dl>
</li>
</ul>
<a name="setEncoding(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEncoding</h4>
<pre>public&nbsp;void&nbsp;setEncoding(java.lang.String&nbsp;encoding)</pre>
<div class="block">Encoding to use for filenames, defaults to the platform's
 default encoding.

 <p>For a list of possible values see <a
 href="http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html">http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html</a>.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>encoding</code> - the encoding name</dd></dl>
</li>
</ul>
<a name="getEncoding()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEncoding</h4>
<pre>public&nbsp;java.lang.String&nbsp;getEncoding()</pre>
<div class="block">Encoding to use for filenames.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the name of the encoding to use</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="setKeepCompression(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeepCompression</h4>
<pre>public&nbsp;void&nbsp;setKeepCompression(boolean&nbsp;keep)</pre>
<div class="block">Whether the original compression of entries coming from a ZIP
 archive should be kept (for example when updating an archive).
 Default is false.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>keep</code> - if true, keep the original compression</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6</dd></dl>
</li>
</ul>
<a name="setComment(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setComment</h4>
<pre>public&nbsp;void&nbsp;setComment(java.lang.String&nbsp;comment)</pre>
<div class="block">Comment to use for archive.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comment</code> - The content of the comment.</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6.3</dd></dl>
</li>
</ul>
<a name="getComment()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getComment</h4>
<pre>public&nbsp;java.lang.String&nbsp;getComment()</pre>
<div class="block">Comment of the archive</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Comment of the archive.</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6.3</dd></dl>
</li>
</ul>
<a name="setLevel(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLevel</h4>
<pre>public&nbsp;void&nbsp;setLevel(int&nbsp;level)</pre>
<div class="block">Set the compression level to use.  Default is
 ZipOutputStream.DEFAULT_COMPRESSION.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>level</code> - compression level.</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="getLevel()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLevel</h4>
<pre>public&nbsp;int&nbsp;getLevel()</pre>
<div class="block">Get the compression level.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>compression level.</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="setRoundUp(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRoundUp</h4>
<pre>public&nbsp;void&nbsp;setRoundUp(boolean&nbsp;r)</pre>
<div class="block">Whether the file modification times will be rounded up to the
 next even number of seconds.

 <p>Zip archives store file modification times with a
 granularity of two seconds, so the times will either be rounded
 up or down.  If you round down, the archive will always seem
 out-of-date when you rerun the task, so the default is to round
 up.  Rounding up may lead to a different type of problems like
 JSPs inside a web archive that seem to be slightly more recent
 than precompiled pages, rendering precompilation useless.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>r</code> - a <code>boolean</code> value</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6.2</dd></dl>
</li>
</ul>
<a name="setPreserve0Permissions(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPreserve0Permissions</h4>
<pre>public&nbsp;void&nbsp;setPreserve0Permissions(boolean&nbsp;b)</pre>
<div class="block">Assume 0 Unix mode is intentional.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="getPreserve0Permissions()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreserve0Permissions</h4>
<pre>public&nbsp;boolean&nbsp;getPreserve0Permissions()</pre>
<div class="block">Assume 0 Unix mode is intentional.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setUseLanguageEncodingFlag(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseLanguageEncodingFlag</h4>
<pre>public&nbsp;void&nbsp;setUseLanguageEncodingFlag(boolean&nbsp;b)</pre>
<div class="block">Whether to set the language encoding flag.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="getUseLanguageEnodingFlag()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUseLanguageEnodingFlag</h4>
<pre>public&nbsp;boolean&nbsp;getUseLanguageEnodingFlag()</pre>
<div class="block">Whether the language encoding flag will be used.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setCreateUnicodeExtraFields(org.apache.tools.ant.taskdefs.Zip.UnicodeExtraField)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCreateUnicodeExtraFields</h4>
<pre>public&nbsp;void&nbsp;setCreateUnicodeExtraFields(<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.UnicodeExtraField.html" title="class in org.apache.tools.ant.taskdefs">Zip.UnicodeExtraField</a>&nbsp;b)</pre>
<div class="block">Whether Unicode extra fields will be created.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="getCreateUnicodeExtraFields()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCreateUnicodeExtraFields</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.UnicodeExtraField.html" title="class in org.apache.tools.ant.taskdefs">Zip.UnicodeExtraField</a>&nbsp;getCreateUnicodeExtraFields()</pre>
<div class="block">Whether Unicode extra fields will be created.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setFallBackToUTF8(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFallBackToUTF8</h4>
<pre>public&nbsp;void&nbsp;setFallBackToUTF8(boolean&nbsp;b)</pre>
<div class="block">Whether to fall back to UTF-8 if a name cannot be enoded using
 the specified encoding.

 <p>Defaults to false.</p></div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="getFallBackToUTF8()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFallBackToUTF8</h4>
<pre>public&nbsp;boolean&nbsp;getFallBackToUTF8()</pre>
<div class="block">Whether to fall back to UTF-8 if a name cannot be enoded using
 the specified encoding.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="execute()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>public&nbsp;void&nbsp;execute()
             throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">validate and build</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/Task.html#execute()">execute</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on error</dd></dl>
</li>
</ul>
<a name="hasUpdatedFile()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasUpdatedFile</h4>
<pre>protected&nbsp;boolean&nbsp;hasUpdatedFile()</pre>
<div class="block">Get the value of the updatedFile attribute.
 This should only be called after executeMain has been
 called.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if executeMain has written to the zip file.</dd></dl>
</li>
</ul>
<a name="executeMain()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>executeMain</h4>
<pre>public&nbsp;void&nbsp;executeMain()
                 throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Build the zip file.
 This is called twice if doubleFilePass is true.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on error</dd></dl>
</li>
</ul>
<a name="isAddingNewFiles()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAddingNewFiles</h4>
<pre>protected final&nbsp;boolean&nbsp;isAddingNewFiles()</pre>
<div class="block">Indicates if the task is adding new files into the archive as opposed to
 copying back unchanged files from the backup copy</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if adding new files</dd></dl>
</li>
</ul>
<a name="addResources(org.apache.tools.ant.types.FileSet, org.apache.tools.ant.types.Resource[], org.apache.tools.zip.ZipOutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addResources</h4>
<pre>protected final&nbsp;void&nbsp;addResources(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>&nbsp;fileset,
                <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;resources,
                <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)
                           throws java.io.IOException</pre>
<div class="block">Add the given resources.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileset</code> - may give additional information like fullpath or
 permissions.</dd><dd><code>resources</code> - the resources to add</dd><dd><code>zOut</code> - the stream to write to</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="addResources(org.apache.tools.ant.types.ResourceCollection, org.apache.tools.ant.types.Resource[], org.apache.tools.zip.ZipOutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addResources</h4>
<pre>protected final&nbsp;void&nbsp;addResources(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>&nbsp;rc,
                <a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;resources,
                <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)
                           throws java.io.IOException</pre>
<div class="block">Add the given resources.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rc</code> - may give additional information like fullpath or
 permissions.</dd><dd><code>resources</code> - the resources to add</dd><dd><code>zOut</code> - the stream to write to</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="initZipOutputStream(org.apache.tools.zip.ZipOutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initZipOutputStream</h4>
<pre>protected&nbsp;void&nbsp;initZipOutputStream(<a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)
                            throws java.io.IOException,
                                   <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">method for subclasses to override</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zOut</code> - the zip output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on output error</dd>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on other errors</dd></dl>
</li>
</ul>
<a name="finalizeZipOutputStream(org.apache.tools.zip.ZipOutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>finalizeZipOutputStream</h4>
<pre>protected&nbsp;void&nbsp;finalizeZipOutputStream(<a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut)
                                throws java.io.IOException,
                                       <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">method for subclasses to override</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zOut</code> - the zip output stream</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on output error</dd>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on other errors</dd></dl>
</li>
</ul>
<a name="createEmptyZip(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createEmptyZip</h4>
<pre>protected&nbsp;boolean&nbsp;createEmptyZip(java.io.File&nbsp;zipFile)
                          throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Create an empty zip file</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>zipFile</code> - the zip file</dd>
<dt><span class="strong">Returns:</span></dt><dd>true for historic reasons</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on error</dd></dl>
</li>
</ul>
<a name="getResourcesToAdd(org.apache.tools.ant.types.ResourceCollection[], java.io.File, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResourcesToAdd</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a>&nbsp;getResourcesToAdd(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs,
                                 java.io.File&nbsp;zipFile,
                                 boolean&nbsp;needsUpdate)
                                      throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.

 <p>If we are going to recreate the archive instead of updating
 it, all resources should be considered as new, if a single one
 is.  Because of this, subclasses overriding this method must
 call <code>super.getResourcesToAdd</code> and indicate with the
 third arg if they already know that the archive is
 out-of-date.</p>

 <p>This method first delegates to getNonFileSetResourceToAdd
 and then invokes the FileSet-arg version.  All this to keep
 backwards compatibility for subclasses that don't know how to
 deal with non-FileSet ResourceCollections.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rcs</code> - The resource collections to grab resources from</dd><dd><code>zipFile</code> - intended archive file (may or may not exist)</dd><dd><code>needsUpdate</code> - whether we already know that the archive is
 out-of-date.  Subclasses overriding this method are supposed to
 set this value correctly in their call to
 <code>super.getResourcesToAdd</code>.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an array of resources to add for each fileset passed in as well
         as a flag that indicates whether the archive is uptodate.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - if it likes</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="getResourcesToAdd(org.apache.tools.ant.types.FileSet[], java.io.File, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResourcesToAdd</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a>&nbsp;getResourcesToAdd(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>[]&nbsp;filesets,
                                 java.io.File&nbsp;zipFile,
                                 boolean&nbsp;needsUpdate)
                                      throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.

 <p>If we are going to recreate the archive instead of updating
 it, all resources should be considered as new, if a single one
 is.  Because of this, subclasses overriding this method must
 call <code>super.getResourcesToAdd</code> and indicate with the
 third arg if they already know that the archive is
 out-of-date.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filesets</code> - The filesets to grab resources from</dd><dd><code>zipFile</code> - intended archive file (may or may not exist)</dd><dd><code>needsUpdate</code> - whether we already know that the archive is
 out-of-date.  Subclasses overriding this method are supposed to
 set this value correctly in their call to
 <code>super.getResourcesToAdd</code>.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an array of resources to add for each fileset passed in as well
         as a flag that indicates whether the archive is uptodate.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - if it likes</dd></dl>
</li>
</ul>
<a name="getNonFileSetResourcesToAdd(org.apache.tools.ant.types.ResourceCollection[], java.io.File, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNonFileSetResourcesToAdd</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</a>&nbsp;getNonFileSetResourcesToAdd(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs,
                                           java.io.File&nbsp;zipFile,
                                           boolean&nbsp;needsUpdate)
                                                throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Collect the resources that are newer than the corresponding
 entries (or missing) in the original archive.

 <p>If we are going to recreate the archive instead of updating
 it, all resources should be considered as new, if a single one
 is.  Because of this, subclasses overriding this method must
 call <code>super.getResourcesToAdd</code> and indicate with the
 third arg if they already know that the archive is
 out-of-date.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rcs</code> - The filesets to grab resources from</dd><dd><code>zipFile</code> - intended archive file (may or may not exist)</dd><dd><code>needsUpdate</code> - whether we already know that the archive is
 out-of-date.  Subclasses overriding this method are supposed to
 set this value correctly in their call to
 <code>super.getResourcesToAdd</code>.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an array of resources to add for each fileset passed in as well
         as a flag that indicates whether the archive is uptodate.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - if it likes</dd></dl>
</li>
</ul>
<a name="grabResources(org.apache.tools.ant.types.FileSet[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>grabResources</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]&nbsp;grabResources(<a href="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</a>[]&nbsp;filesets)</pre>
<div class="block">Fetch all included and not excluded resources from the sets.

 <p>Included directories will precede included files.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filesets</code> - an array of filesets</dd>
<dt><span class="strong">Returns:</span></dt><dd>the resources included</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="grabNonFileSetResources(org.apache.tools.ant.types.ResourceCollection[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>grabNonFileSetResources</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]&nbsp;grabNonFileSetResources(<a href="../../../../../org/apache/tools/ant/types/ResourceCollection.html" title="interface in org.apache.tools.ant.types">ResourceCollection</a>[]&nbsp;rcs)</pre>
<div class="block">Fetch all included and not excluded resources from the collections.

 <p>Included directories will precede included files.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rcs</code> - an array of resource collections</dd>
<dt><span class="strong">Returns:</span></dt><dd>the resources included</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipDir</h4>
<pre>protected&nbsp;void&nbsp;zipDir(java.io.File&nbsp;dir,
          <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
          java.lang.String&nbsp;vPath,
          int&nbsp;mode)
               throws java.io.IOException</pre>
<div class="block">Add a directory to the zip stream.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - the directort to add to the archive</dd><dd><code>zOut</code> - the stream to write to</dd><dd><code>vPath</code> - the name this entry shall have in the archive</dd><dd><code>mode</code> - the Unix permissions to set.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int, org.apache.tools.zip.ZipExtraField[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipDir</h4>
<pre>protected&nbsp;void&nbsp;zipDir(java.io.File&nbsp;dir,
          <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
          java.lang.String&nbsp;vPath,
          int&nbsp;mode,
          <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)
               throws java.io.IOException</pre>
<div class="block">Add a directory to the zip stream.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - the directory to add to the archive</dd><dd><code>zOut</code> - the stream to write to</dd><dd><code>vPath</code> - the name this entry shall have in the archive</dd><dd><code>mode</code> - the Unix permissions to set.</dd><dd><code>extra</code> - ZipExtraFields to add</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6.3</dd></dl>
</li>
</ul>
<a name="zipDir(org.apache.tools.ant.types.Resource, org.apache.tools.zip.ZipOutputStream, java.lang.String, int, org.apache.tools.zip.ZipExtraField[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipDir</h4>
<pre>protected&nbsp;void&nbsp;zipDir(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>&nbsp;dir,
          <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
          java.lang.String&nbsp;vPath,
          int&nbsp;mode,
          <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)
               throws java.io.IOException</pre>
<div class="block">Add a directory to the zip stream.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - the directory to add to the archive</dd><dd><code>zOut</code> - the stream to write to</dd><dd><code>vPath</code> - the name this entry shall have in the archive</dd><dd><code>mode</code> - the Unix permissions to set.</dd><dd><code>extra</code> - ZipExtraFields to add</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="getCurrentExtraFields()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentExtraFields</h4>
<pre>protected final&nbsp;<a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;getCurrentExtraFields()</pre>
<div class="block">Provides the extra fields for the zip entry currently being
 added to the archive - if any.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setCurrentExtraFields(org.apache.tools.zip.ZipExtraField[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCurrentExtraFields</h4>
<pre>protected final&nbsp;void&nbsp;setCurrentExtraFields(<a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)</pre>
<div class="block">Sets the extra fields for the zip entry currently being
 added to the archive - if any.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="zipFile(java.io.InputStream, org.apache.tools.zip.ZipOutputStream, java.lang.String, long, java.io.File, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipFile</h4>
<pre>protected&nbsp;void&nbsp;zipFile(java.io.InputStream&nbsp;in,
           <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
           java.lang.String&nbsp;vPath,
           long&nbsp;lastModified,
           java.io.File&nbsp;fromArchive,
           int&nbsp;mode)
                throws java.io.IOException</pre>
<div class="block">Adds a new entry to the archive, takes care of duplicates as well.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the stream to read data for the entry from.  The
 caller of the method is responsible for closing the stream.</dd><dd><code>zOut</code> - the stream to write to.</dd><dd><code>vPath</code> - the name this entry shall have in the archive.</dd><dd><code>lastModified</code> - last modification time for the entry.</dd><dd><code>fromArchive</code> - the original archive we are copying this
 entry from, will be null if we are not copying from an archive.</dd><dd><code>mode</code> - the Unix permissions to set.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="zipFile(java.io.InputStream, org.apache.tools.zip.ZipOutputStream, java.lang.String, long, java.io.File, int, org.apache.tools.zip.ZipExtraField[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipFile</h4>
<pre>protected final&nbsp;void&nbsp;zipFile(java.io.InputStream&nbsp;in,
           <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
           java.lang.String&nbsp;vPath,
           long&nbsp;lastModified,
           java.io.File&nbsp;fromArchive,
           int&nbsp;mode,
           <a href="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</a>[]&nbsp;extra)
                      throws java.io.IOException</pre>
<div class="block">Adds a new entry to the archive, takes care of duplicates as well.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the stream to read data for the entry from.  The
 caller of the method is responsible for closing the stream.</dd><dd><code>zOut</code> - the stream to write to.</dd><dd><code>vPath</code> - the name this entry shall have in the archive.</dd><dd><code>lastModified</code> - last modification time for the entry.</dd><dd><code>fromArchive</code> - the original archive we are copying this
 entry from, will be null if we are not copying from an archive.</dd><dd><code>mode</code> - the Unix permissions to set.</dd><dd><code>extra</code> - ZipExtraFields to add</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="zipFile(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zipFile</h4>
<pre>protected&nbsp;void&nbsp;zipFile(java.io.File&nbsp;file,
           <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
           java.lang.String&nbsp;vPath,
           int&nbsp;mode)
                throws java.io.IOException</pre>
<div class="block">Method that gets called when adding from <code>java.io.File</code> instances.

 <p>This implementation delegates to the six-arg version.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the file to add to the archive</dd><dd><code>zOut</code> - the stream to write to</dd><dd><code>vPath</code> - the name this entry shall have in the archive</dd><dd><code>mode</code> - the Unix permissions to set.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="addParentDirs(java.io.File, java.lang.String, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addParentDirs</h4>
<pre>protected final&nbsp;void&nbsp;addParentDirs(java.io.File&nbsp;baseDir,
                 java.lang.String&nbsp;entry,
                 <a href="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</a>&nbsp;zOut,
                 java.lang.String&nbsp;prefix,
                 int&nbsp;dirMode)
                            throws java.io.IOException</pre>
<div class="block">Ensure all parent dirs of a given entry have been added.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>baseDir</code> - the base directory to use (may be null)</dd><dd><code>entry</code> - the entry name to create directories from</dd><dd><code>zOut</code> - the stream to write to</dd><dd><code>prefix</code> - a prefix to place on the created entries</dd><dd><code>dirMode</code> - the directory mode</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - on error</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="cleanUp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cleanUp</h4>
<pre>protected&nbsp;void&nbsp;cleanUp()</pre>
<div class="block">Do any clean up necessary to allow this instance to be used again.

 <p>When we get here, the Zip file has been closed and all we
 need to do is to reset some globals.</p>

 <p>This method will only reset globals that have been changed
 during execute(), it will not alter the attributes or nested
 child elements.  If you want to reset the instance so that you
 can later zip a completely different set of files, you must use
 the reset method.</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#reset()"><code>reset()</code></a></dd></dl>
</li>
</ul>
<a name="reset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public&nbsp;void&nbsp;reset()</pre>
<div class="block">Makes this instance reset all attributes to their default
 values and forget all children.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.html#cleanUp()"><code>cleanUp()</code></a></dd></dl>
</li>
</ul>
<a name="isEmpty(org.apache.tools.ant.types.Resource[][])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre>protected static final&nbsp;boolean&nbsp;isEmpty(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[][]&nbsp;r)</pre>
<div class="block">Check is the resource arrays are empty.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>r</code> - the arrays to check</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if all individual arrays are empty</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.5.2</dd></dl>
</li>
</ul>
<a name="selectFileResources(org.apache.tools.ant.types.Resource[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectFileResources</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;selectFileResources(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig)</pre>
<div class="block">Drops all non-file resources from the given array.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>orig</code> - the resources to filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the filters resources</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.6</dd></dl>
</li>
</ul>
<a name="selectDirectoryResources(org.apache.tools.ant.types.Resource[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectDirectoryResources</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;selectDirectoryResources(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig)</pre>
<div class="block">Drops all non-directory resources from the given array.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>orig</code> - the resources to filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the filters resources</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="selectResources(org.apache.tools.ant.types.Resource[], org.apache.tools.ant.types.resources.selectors.ResourceSelector)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectResources</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;selectResources(<a href="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</a>[]&nbsp;orig,
                         <a href="../../../../../org/apache/tools/ant/types/resources/selectors/ResourceSelector.html" title="interface in org.apache.tools.ant.types.resources.selectors">ResourceSelector</a>&nbsp;selector)</pre>
<div class="block">Drops all resources from the given array that are not selected</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>orig</code> - the resources to filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the filters resources</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="logWhenWriting(java.lang.String, int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>logWhenWriting</h4>
<pre>protected&nbsp;void&nbsp;logWhenWriting(java.lang.String&nbsp;msg,
                  int&nbsp;level)</pre>
<div class="block">Logs a message at the given output level, but only if this is
 the pass that will actually create the archive.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.8.0</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/XSLTProcess.TraceConfiguration.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/tools/ant/taskdefs/Zip.html" target="_top">Frames</a></li>
<li><a href="Zip.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>