1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:23 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | Zip (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.Zip class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="Zip (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/XSLTProcess.Param.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="Zip.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs</FONT>
|
---|
85 | <BR>
|
---|
86 | Class Zip</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
91 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">org.apache.tools.ant.taskdefs.MatchingTask</A>
|
---|
92 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.Zip</B>
|
---|
93 | </PRE>
|
---|
94 | <DL>
|
---|
95 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/types/selectors/SelectorContainer.html" title="interface in org.apache.tools.ant.types.selectors">SelectorContainer</A></DD>
|
---|
96 | </DL>
|
---|
97 | <DL>
|
---|
98 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/Jar.html" title="class in org.apache.tools.ant.taskdefs">Jar</A></DD>
|
---|
99 | </DL>
|
---|
100 | <HR>
|
---|
101 | <DL>
|
---|
102 | <DT>public class <B>Zip</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</A></DL>
|
---|
103 |
|
---|
104 | <P>
|
---|
105 | Create a Zip file.
|
---|
106 | <P>
|
---|
107 |
|
---|
108 | <P>
|
---|
109 | <DL>
|
---|
110 | <DT><B>Since:</B></DT>
|
---|
111 | <DD>Ant 1.1</DD>
|
---|
112 | </DL>
|
---|
113 | <HR>
|
---|
114 |
|
---|
115 | <P>
|
---|
116 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
117 |
|
---|
118 | <A NAME="nested_class_summary"><!-- --></A>
|
---|
119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
121 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
122 | <B>Nested Class Summary</B></FONT></TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
126 | <CODE>static class</CODE></FONT></TD>
|
---|
127 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</A></B></CODE>
|
---|
128 |
|
---|
129 | <BR>
|
---|
130 | Holds the up-to-date status and the out-of-date resources of
|
---|
131 | the original archive.</TD>
|
---|
132 | </TR>
|
---|
133 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
134 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
135 | <CODE>static class</CODE></FONT></TD>
|
---|
136 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</A></B></CODE>
|
---|
137 |
|
---|
138 | <BR>
|
---|
139 | Possible behaviors when a duplicate file is added:
|
---|
140 | "add", "preserve" or "fail"</TD>
|
---|
141 | </TR>
|
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
144 | <CODE>static class</CODE></FONT></TD>
|
---|
145 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</A></B></CODE>
|
---|
146 |
|
---|
147 | <BR>
|
---|
148 | Possible behaviors when there are no matching files for the task:
|
---|
149 | "fail", "skip", or "create".</TD>
|
---|
150 | </TR>
|
---|
151 | </TABLE>
|
---|
152 |
|
---|
153 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
154 |
|
---|
155 | <A NAME="field_summary"><!-- --></A>
|
---|
156 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
157 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
158 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
159 | <B>Field Summary</B></FONT></TD>
|
---|
160 | </TR>
|
---|
161 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
162 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
163 | <CODE>protected java.util.Hashtable</CODE></FONT></TD>
|
---|
164 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addedDirs">addedDirs</A></B></CODE>
|
---|
165 |
|
---|
166 | <BR>
|
---|
167 | </TD>
|
---|
168 | </TR>
|
---|
169 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
171 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
172 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#archiveType">archiveType</A></B></CODE>
|
---|
173 |
|
---|
174 | <BR>
|
---|
175 | </TD>
|
---|
176 | </TR>
|
---|
177 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
178 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
179 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
180 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#doubleFilePass">doubleFilePass</A></B></CODE>
|
---|
181 |
|
---|
182 | <BR>
|
---|
183 | </TD>
|
---|
184 | </TR>
|
---|
185 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
187 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
188 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#duplicate">duplicate</A></B></CODE>
|
---|
189 |
|
---|
190 | <BR>
|
---|
191 | </TD>
|
---|
192 | </TR>
|
---|
193 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
195 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
196 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#emptyBehavior">emptyBehavior</A></B></CODE>
|
---|
197 |
|
---|
198 | <BR>
|
---|
199 | </TD>
|
---|
200 | </TR>
|
---|
201 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
203 | <CODE>protected java.util.Hashtable</CODE></FONT></TD>
|
---|
204 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#entries">entries</A></B></CODE>
|
---|
205 |
|
---|
206 | <BR>
|
---|
207 | </TD>
|
---|
208 | </TR>
|
---|
209 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
211 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
212 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#skipWriting">skipWriting</A></B></CODE>
|
---|
213 |
|
---|
214 | <BR>
|
---|
215 | </TD>
|
---|
216 | </TR>
|
---|
217 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
219 | <CODE>protected java.io.File</CODE></FONT></TD>
|
---|
220 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile">zipFile</A></B></CODE>
|
---|
221 |
|
---|
222 | <BR>
|
---|
223 | </TD>
|
---|
224 | </TR>
|
---|
225 | </TABLE>
|
---|
226 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.taskdefs.MatchingTask"><!-- --></A>
|
---|
227 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
228 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
229 | <TD><B>Fields inherited from class org.apache.tools.ant.taskdefs.<A HREF="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</A></B></TD>
|
---|
230 | </TR>
|
---|
231 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
232 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html#fileset">fileset</A></CODE></TD>
|
---|
233 | </TR>
|
---|
234 | </TABLE>
|
---|
235 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
236 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
237 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
238 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
239 | </TR>
|
---|
240 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
241 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#location">location</A>, <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></TD>
|
---|
242 | </TR>
|
---|
243 | </TABLE>
|
---|
244 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
245 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
246 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
247 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
248 | </TR>
|
---|
249 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
250 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
251 | </TR>
|
---|
252 | </TABLE>
|
---|
253 |
|
---|
254 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
255 |
|
---|
256 | <A NAME="constructor_summary"><!-- --></A>
|
---|
257 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
258 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
259 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
260 | <B>Constructor Summary</B></FONT></TD>
|
---|
261 | </TR>
|
---|
262 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
263 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#Zip()">Zip</A></B>()</CODE>
|
---|
264 |
|
---|
265 | <BR>
|
---|
266 | </TD>
|
---|
267 | </TR>
|
---|
268 | </TABLE>
|
---|
269 |
|
---|
270 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
271 |
|
---|
272 | <A NAME="method_summary"><!-- --></A>
|
---|
273 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
274 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
275 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
276 | <B>Method Summary</B></FONT></TD>
|
---|
277 | </TR>
|
---|
278 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
280 | <CODE> void</CODE></FONT></TD>
|
---|
281 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addFileset(org.apache.tools.ant.types.FileSet)">addFileset</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</CODE>
|
---|
282 |
|
---|
283 | <BR>
|
---|
284 | Adds a set of files.</TD>
|
---|
285 | </TR>
|
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
288 | <CODE>protected void</CODE></FONT></TD>
|
---|
289 | <TD><CODE><B><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></B>(java.io.File baseDir,
|
---|
290 | java.lang.String entry,
|
---|
291 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
292 | java.lang.String prefix,
|
---|
293 | int dirMode)</CODE>
|
---|
294 |
|
---|
295 | <BR>
|
---|
296 | Ensure all parent dirs of a given entry have been added.</TD>
|
---|
297 | </TR>
|
---|
298 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
299 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
300 | <CODE>protected void</CODE></FONT></TD>
|
---|
301 | <TD><CODE><B><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></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fileset,
|
---|
302 | <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[] resources,
|
---|
303 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)</CODE>
|
---|
304 |
|
---|
305 | <BR>
|
---|
306 | Add the given resources.</TD>
|
---|
307 | </TR>
|
---|
308 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
309 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
310 | <CODE> void</CODE></FONT></TD>
|
---|
311 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addZipfileset(org.apache.tools.ant.types.ZipFileSet)">addZipfileset</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/ZipFileSet.html" title="class in org.apache.tools.ant.types">ZipFileSet</A> set)</CODE>
|
---|
312 |
|
---|
313 | <BR>
|
---|
314 | Adds a set of files that can be
|
---|
315 | read from an archive and be given a prefix/fullpath.</TD>
|
---|
316 | </TR>
|
---|
317 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
318 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
319 | <CODE> void</CODE></FONT></TD>
|
---|
320 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#addZipGroupFileset(org.apache.tools.ant.types.FileSet)">addZipGroupFileset</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</CODE>
|
---|
321 |
|
---|
322 | <BR>
|
---|
323 | Adds a group of zip files.</TD>
|
---|
324 | </TR>
|
---|
325 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
326 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
327 | <CODE>protected void</CODE></FONT></TD>
|
---|
328 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#cleanUp()">cleanUp</A></B>()</CODE>
|
---|
329 |
|
---|
330 | <BR>
|
---|
331 | Do any clean up necessary to allow this instance to be used again.</TD>
|
---|
332 | </TR>
|
---|
333 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
334 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
335 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
336 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#createEmptyZip(java.io.File)">createEmptyZip</A></B>(java.io.File zipFile)</CODE>
|
---|
337 |
|
---|
338 | <BR>
|
---|
339 | Create an empty zip file</TD>
|
---|
340 | </TR>
|
---|
341 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
342 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
343 | <CODE> void</CODE></FONT></TD>
|
---|
344 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#execute()">execute</A></B>()</CODE>
|
---|
345 |
|
---|
346 | <BR>
|
---|
347 | validate and build</TD>
|
---|
348 | </TR>
|
---|
349 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
350 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
351 | <CODE> void</CODE></FONT></TD>
|
---|
352 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#executeMain()">executeMain</A></B>()</CODE>
|
---|
353 |
|
---|
354 | <BR>
|
---|
355 | </TD>
|
---|
356 | </TR>
|
---|
357 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
358 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
359 | <CODE>protected void</CODE></FONT></TD>
|
---|
360 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#finalizeZipOutputStream(org.apache.tools.zip.ZipOutputStream)">finalizeZipOutputStream</A></B>(<A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)</CODE>
|
---|
361 |
|
---|
362 | <BR>
|
---|
363 | method for subclasses to override</TD>
|
---|
364 | </TR>
|
---|
365 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
366 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
367 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
368 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getComment()">getComment</A></B>()</CODE>
|
---|
369 |
|
---|
370 | <BR>
|
---|
371 | Comment of the archive</TD>
|
---|
372 | </TR>
|
---|
373 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
374 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
375 | <CODE> java.io.File</CODE></FONT></TD>
|
---|
376 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getDestFile()">getDestFile</A></B>()</CODE>
|
---|
377 |
|
---|
378 | <BR>
|
---|
379 | The file to create.</TD>
|
---|
380 | </TR>
|
---|
381 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
382 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
383 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
384 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getEncoding()">getEncoding</A></B>()</CODE>
|
---|
385 |
|
---|
386 | <BR>
|
---|
387 | Encoding to use for filenames.</TD>
|
---|
388 | </TR>
|
---|
389 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
390 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
391 | <CODE>protected <A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</A></CODE></FONT></TD>
|
---|
392 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#getResourcesToAdd(org.apache.tools.ant.types.FileSet[], java.io.File, boolean)">getResourcesToAdd</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A>[] filesets,
|
---|
393 | java.io.File zipFile,
|
---|
394 | boolean needsUpdate)</CODE>
|
---|
395 |
|
---|
396 | <BR>
|
---|
397 | Collect the resources that are newer than the corresponding
|
---|
398 | entries (or missing) in the original archive.</TD>
|
---|
399 | </TR>
|
---|
400 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
401 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
402 | <CODE>protected <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[][]</CODE></FONT></TD>
|
---|
403 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#grabResources(org.apache.tools.ant.types.FileSet[])">grabResources</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A>[] filesets)</CODE>
|
---|
404 |
|
---|
405 | <BR>
|
---|
406 | Fetch all included and not excluded resources from the sets.</TD>
|
---|
407 | </TR>
|
---|
408 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
409 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
410 | <CODE>protected void</CODE></FONT></TD>
|
---|
411 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#initZipOutputStream(org.apache.tools.zip.ZipOutputStream)">initZipOutputStream</A></B>(<A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)</CODE>
|
---|
412 |
|
---|
413 | <BR>
|
---|
414 | method for subclasses to override</TD>
|
---|
415 | </TR>
|
---|
416 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
417 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
418 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
419 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isAddingNewFiles()">isAddingNewFiles</A></B>()</CODE>
|
---|
420 |
|
---|
421 | <BR>
|
---|
422 | Indicates if the task is adding new files into the archive as opposed to
|
---|
423 | copying back unchanged files from the backup copy</TD>
|
---|
424 | </TR>
|
---|
425 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
426 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
427 | <CODE> boolean</CODE></FONT></TD>
|
---|
428 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isCompress()">isCompress</A></B>()</CODE>
|
---|
429 |
|
---|
430 | <BR>
|
---|
431 | Whether we want to compress the files or only store them;</TD>
|
---|
432 | </TR>
|
---|
433 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
434 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
435 | <CODE>protected static boolean</CODE></FONT></TD>
|
---|
436 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isEmpty(org.apache.tools.ant.types.Resource[][])">isEmpty</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[][] r)</CODE>
|
---|
437 |
|
---|
438 | <BR>
|
---|
439 | </TD>
|
---|
440 | </TR>
|
---|
441 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
442 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
443 | <CODE> boolean</CODE></FONT></TD>
|
---|
444 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#isInUpdateMode()">isInUpdateMode</A></B>()</CODE>
|
---|
445 |
|
---|
446 | <BR>
|
---|
447 | Are we updating an existing archive?</TD>
|
---|
448 | </TR>
|
---|
449 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
450 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
451 | <CODE> void</CODE></FONT></TD>
|
---|
452 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#reset()">reset</A></B>()</CODE>
|
---|
453 |
|
---|
454 | <BR>
|
---|
455 | Makes this instance reset all attributes to their default
|
---|
456 | values and forget all children.</TD>
|
---|
457 | </TR>
|
---|
458 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
459 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
460 | <CODE>protected <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[]</CODE></FONT></TD>
|
---|
461 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#selectFileResources(org.apache.tools.ant.types.Resource[])">selectFileResources</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[] orig)</CODE>
|
---|
462 |
|
---|
463 | <BR>
|
---|
464 | Drops all non-file resources from the given array.</TD>
|
---|
465 | </TR>
|
---|
466 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
467 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
468 | <CODE> void</CODE></FONT></TD>
|
---|
469 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setBasedir(java.io.File)">setBasedir</A></B>(java.io.File baseDir)</CODE>
|
---|
470 |
|
---|
471 | <BR>
|
---|
472 | Directory from which to archive files; optional.</TD>
|
---|
473 | </TR>
|
---|
474 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
475 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
476 | <CODE> void</CODE></FONT></TD>
|
---|
477 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setComment(java.lang.String)">setComment</A></B>(java.lang.String comment)</CODE>
|
---|
478 |
|
---|
479 | <BR>
|
---|
480 | Comment to use for archive.</TD>
|
---|
481 | </TR>
|
---|
482 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
483 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
484 | <CODE> void</CODE></FONT></TD>
|
---|
485 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setCompress(boolean)">setCompress</A></B>(boolean c)</CODE>
|
---|
486 |
|
---|
487 | <BR>
|
---|
488 | Whether we want to compress the files or only store them;
|
---|
489 | optional, default=true;</TD>
|
---|
490 | </TR>
|
---|
491 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
492 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
493 | <CODE> void</CODE></FONT></TD>
|
---|
494 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setDestFile(java.io.File)">setDestFile</A></B>(java.io.File destFile)</CODE>
|
---|
495 |
|
---|
496 | <BR>
|
---|
497 | The file to create; required.</TD>
|
---|
498 | </TR>
|
---|
499 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
500 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
501 | <CODE> void</CODE></FONT></TD>
|
---|
502 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setDuplicate(org.apache.tools.ant.taskdefs.Zip.Duplicate)">setDuplicate</A></B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</A> df)</CODE>
|
---|
503 |
|
---|
504 | <BR>
|
---|
505 | Sets behavior for when a duplicate file is about to be added -
|
---|
506 | one of <code>keep</code>, <code>skip</code> or <code>overwrite</code>.</TD>
|
---|
507 | </TR>
|
---|
508 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
509 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
510 | <CODE> void</CODE></FONT></TD>
|
---|
511 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setEncoding(java.lang.String)">setEncoding</A></B>(java.lang.String encoding)</CODE>
|
---|
512 |
|
---|
513 | <BR>
|
---|
514 | Encoding to use for filenames, defaults to the platform's
|
---|
515 | default encoding.</TD>
|
---|
516 | </TR>
|
---|
517 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
518 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
519 | <CODE> void</CODE></FONT></TD>
|
---|
520 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setFile(java.io.File)">setFile</A></B>(java.io.File file)</CODE>
|
---|
521 |
|
---|
522 | <BR>
|
---|
523 | <B>Deprecated.</B> <I>Use setDestFile(File) instead</I></TD>
|
---|
524 | </TR>
|
---|
525 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
526 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
527 | <CODE> void</CODE></FONT></TD>
|
---|
528 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setFilesonly(boolean)">setFilesonly</A></B>(boolean f)</CODE>
|
---|
529 |
|
---|
530 | <BR>
|
---|
531 | If true, emulate Sun's jar utility by not adding parent directories;
|
---|
532 | optional, defaults to false.</TD>
|
---|
533 | </TR>
|
---|
534 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
535 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
536 | <CODE> void</CODE></FONT></TD>
|
---|
537 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setKeepCompression(boolean)">setKeepCompression</A></B>(boolean keep)</CODE>
|
---|
538 |
|
---|
539 | <BR>
|
---|
540 | Whether the original compression of entries coming from a ZIP
|
---|
541 | archive should be kept (for example when updating an archive).</TD>
|
---|
542 | </TR>
|
---|
543 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
544 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
545 | <CODE> void</CODE></FONT></TD>
|
---|
546 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setRoundUp(boolean)">setRoundUp</A></B>(boolean r)</CODE>
|
---|
547 |
|
---|
548 | <BR>
|
---|
549 | Whether the file modification times will be rounded up to the
|
---|
550 | next even number of seconds.</TD>
|
---|
551 | </TR>
|
---|
552 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
553 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
554 | <CODE> void</CODE></FONT></TD>
|
---|
555 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setUpdate(boolean)">setUpdate</A></B>(boolean c)</CODE>
|
---|
556 |
|
---|
557 | <BR>
|
---|
558 | If true, updates an existing file, otherwise overwrite
|
---|
559 | any existing one; optional defaults to false.</TD>
|
---|
560 | </TR>
|
---|
561 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
562 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
563 | <CODE> void</CODE></FONT></TD>
|
---|
564 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setWhenempty(org.apache.tools.ant.taskdefs.Zip.WhenEmpty)">setWhenempty</A></B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</A> we)</CODE>
|
---|
565 |
|
---|
566 | <BR>
|
---|
567 | Sets behavior of the task when no files match.</TD>
|
---|
568 | </TR>
|
---|
569 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
570 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
571 | <CODE> void</CODE></FONT></TD>
|
---|
572 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#setZipfile(java.io.File)">setZipfile</A></B>(java.io.File zipFile)</CODE>
|
---|
573 |
|
---|
574 | <BR>
|
---|
575 | <B>Deprecated.</B> <I>Use setDestFile(File) instead.</I></TD>
|
---|
576 | </TR>
|
---|
577 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
578 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
579 | <CODE>protected void</CODE></FONT></TD>
|
---|
580 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">zipDir</A></B>(java.io.File dir,
|
---|
581 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
582 | java.lang.String vPath,
|
---|
583 | int mode)</CODE>
|
---|
584 |
|
---|
585 | <BR>
|
---|
586 | </TD>
|
---|
587 | </TR>
|
---|
588 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
589 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
590 | <CODE>protected void</CODE></FONT></TD>
|
---|
591 | <TD><CODE><B><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></B>(java.io.File dir,
|
---|
592 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
593 | java.lang.String vPath,
|
---|
594 | int mode,
|
---|
595 | <A HREF="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[] extra)</CODE>
|
---|
596 |
|
---|
597 | <BR>
|
---|
598 | Add a directory to the zip stream.</TD>
|
---|
599 | </TR>
|
---|
600 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
601 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
602 | <CODE>protected void</CODE></FONT></TD>
|
---|
603 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#zipFile(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)">zipFile</A></B>(java.io.File file,
|
---|
604 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
605 | java.lang.String vPath,
|
---|
606 | int mode)</CODE>
|
---|
607 |
|
---|
608 | <BR>
|
---|
609 | Method that gets called when adding from java.io.File instances.</TD>
|
---|
610 | </TR>
|
---|
611 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
612 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
613 | <CODE>protected void</CODE></FONT></TD>
|
---|
614 | <TD><CODE><B><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></B>(java.io.InputStream in,
|
---|
615 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
616 | java.lang.String vPath,
|
---|
617 | long lastModified,
|
---|
618 | java.io.File fromArchive,
|
---|
619 | int mode)</CODE>
|
---|
620 |
|
---|
621 | <BR>
|
---|
622 | Adds a new entry to the archive, takes care of duplicates as well.</TD>
|
---|
623 | </TR>
|
---|
624 | </TABLE>
|
---|
625 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.taskdefs.MatchingTask"><!-- --></A>
|
---|
626 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
627 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
628 | <TD><B>Methods inherited from class org.apache.tools.ant.taskdefs.<A HREF="../../../../../org/apache/tools/ant/taskdefs/MatchingTask.html" title="class in org.apache.tools.ant.taskdefs">MatchingTask</A></B></TD>
|
---|
629 | </TR>
|
---|
630 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
631 | <TD><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></TD>
|
---|
632 | </TR>
|
---|
633 | </TABLE>
|
---|
634 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
635 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
636 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
637 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
638 | </TR>
|
---|
639 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
640 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</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#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#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</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></TD>
|
---|
641 | </TR>
|
---|
642 | </TABLE>
|
---|
643 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
644 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
645 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
646 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
647 | </TR>
|
---|
648 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
649 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A></CODE></TD>
|
---|
650 | </TR>
|
---|
651 | </TABLE>
|
---|
652 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
653 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
654 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
655 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
656 | </TR>
|
---|
657 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
658 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
659 | </TR>
|
---|
660 | </TABLE>
|
---|
661 |
|
---|
662 | <P>
|
---|
663 |
|
---|
664 | <!-- ============ FIELD DETAIL =========== -->
|
---|
665 |
|
---|
666 | <A NAME="field_detail"><!-- --></A>
|
---|
667 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
668 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
669 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
670 | <B>Field Detail</B></FONT></TD>
|
---|
671 | </TR>
|
---|
672 | </TABLE>
|
---|
673 |
|
---|
674 | <A NAME="zipFile"><!-- --></A><H3>
|
---|
675 | zipFile</H3>
|
---|
676 | <PRE>
|
---|
677 | protected java.io.File <B>zipFile</B></PRE>
|
---|
678 | <DL>
|
---|
679 | <DL>
|
---|
680 | </DL>
|
---|
681 | </DL>
|
---|
682 | <HR>
|
---|
683 |
|
---|
684 | <A NAME="entries"><!-- --></A><H3>
|
---|
685 | entries</H3>
|
---|
686 | <PRE>
|
---|
687 | protected java.util.Hashtable <B>entries</B></PRE>
|
---|
688 | <DL>
|
---|
689 | <DL>
|
---|
690 | </DL>
|
---|
691 | </DL>
|
---|
692 | <HR>
|
---|
693 |
|
---|
694 | <A NAME="duplicate"><!-- --></A><H3>
|
---|
695 | duplicate</H3>
|
---|
696 | <PRE>
|
---|
697 | protected java.lang.String <B>duplicate</B></PRE>
|
---|
698 | <DL>
|
---|
699 | <DL>
|
---|
700 | </DL>
|
---|
701 | </DL>
|
---|
702 | <HR>
|
---|
703 |
|
---|
704 | <A NAME="archiveType"><!-- --></A><H3>
|
---|
705 | archiveType</H3>
|
---|
706 | <PRE>
|
---|
707 | protected java.lang.String <B>archiveType</B></PRE>
|
---|
708 | <DL>
|
---|
709 | <DL>
|
---|
710 | </DL>
|
---|
711 | </DL>
|
---|
712 | <HR>
|
---|
713 |
|
---|
714 | <A NAME="emptyBehavior"><!-- --></A><H3>
|
---|
715 | emptyBehavior</H3>
|
---|
716 | <PRE>
|
---|
717 | protected java.lang.String <B>emptyBehavior</B></PRE>
|
---|
718 | <DL>
|
---|
719 | <DL>
|
---|
720 | </DL>
|
---|
721 | </DL>
|
---|
722 | <HR>
|
---|
723 |
|
---|
724 | <A NAME="addedDirs"><!-- --></A><H3>
|
---|
725 | addedDirs</H3>
|
---|
726 | <PRE>
|
---|
727 | protected java.util.Hashtable <B>addedDirs</B></PRE>
|
---|
728 | <DL>
|
---|
729 | <DL>
|
---|
730 | </DL>
|
---|
731 | </DL>
|
---|
732 | <HR>
|
---|
733 |
|
---|
734 | <A NAME="doubleFilePass"><!-- --></A><H3>
|
---|
735 | doubleFilePass</H3>
|
---|
736 | <PRE>
|
---|
737 | protected boolean <B>doubleFilePass</B></PRE>
|
---|
738 | <DL>
|
---|
739 | <DL>
|
---|
740 | </DL>
|
---|
741 | </DL>
|
---|
742 | <HR>
|
---|
743 |
|
---|
744 | <A NAME="skipWriting"><!-- --></A><H3>
|
---|
745 | skipWriting</H3>
|
---|
746 | <PRE>
|
---|
747 | protected boolean <B>skipWriting</B></PRE>
|
---|
748 | <DL>
|
---|
749 | <DL>
|
---|
750 | </DL>
|
---|
751 | </DL>
|
---|
752 |
|
---|
753 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
754 |
|
---|
755 | <A NAME="constructor_detail"><!-- --></A>
|
---|
756 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
757 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
758 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
759 | <B>Constructor Detail</B></FONT></TD>
|
---|
760 | </TR>
|
---|
761 | </TABLE>
|
---|
762 |
|
---|
763 | <A NAME="Zip()"><!-- --></A><H3>
|
---|
764 | Zip</H3>
|
---|
765 | <PRE>
|
---|
766 | public <B>Zip</B>()</PRE>
|
---|
767 | <DL>
|
---|
768 | </DL>
|
---|
769 |
|
---|
770 | <!-- ============ METHOD DETAIL ========== -->
|
---|
771 |
|
---|
772 | <A NAME="method_detail"><!-- --></A>
|
---|
773 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
774 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
775 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
776 | <B>Method Detail</B></FONT></TD>
|
---|
777 | </TR>
|
---|
778 | </TABLE>
|
---|
779 |
|
---|
780 | <A NAME="setZipfile(java.io.File)"><!-- --></A><H3>
|
---|
781 | setZipfile</H3>
|
---|
782 | <PRE>
|
---|
783 | public void <B>setZipfile</B>(java.io.File zipFile)</PRE>
|
---|
784 | <DL>
|
---|
785 | <DD><B>Deprecated.</B> <I>Use setDestFile(File) instead.</I>
|
---|
786 | <P>
|
---|
787 | <DD>This is the name/location of where to
|
---|
788 | create the .zip file.
|
---|
789 | <P>
|
---|
790 | <DD><DL>
|
---|
791 | </DL>
|
---|
792 | </DD>
|
---|
793 | </DL>
|
---|
794 | <HR>
|
---|
795 |
|
---|
796 | <A NAME="setFile(java.io.File)"><!-- --></A><H3>
|
---|
797 | setFile</H3>
|
---|
798 | <PRE>
|
---|
799 | public void <B>setFile</B>(java.io.File file)</PRE>
|
---|
800 | <DL>
|
---|
801 | <DD><B>Deprecated.</B> <I>Use setDestFile(File) instead</I>
|
---|
802 | <P>
|
---|
803 | <DD>This is the name/location of where to
|
---|
804 | create the file.
|
---|
805 | <P>
|
---|
806 | <DD><DL>
|
---|
807 | <DT><B>Since:</B></DT>
|
---|
808 | <DD>Ant 1.5</DD>
|
---|
809 | </DL>
|
---|
810 | </DD>
|
---|
811 | </DL>
|
---|
812 | <HR>
|
---|
813 |
|
---|
814 | <A NAME="setDestFile(java.io.File)"><!-- --></A><H3>
|
---|
815 | setDestFile</H3>
|
---|
816 | <PRE>
|
---|
817 | public void <B>setDestFile</B>(java.io.File destFile)</PRE>
|
---|
818 | <DL>
|
---|
819 | <DD>The file to create; required.
|
---|
820 | <P>
|
---|
821 | <DD><DL>
|
---|
822 | <DT><B>Parameters:</B><DD><CODE>destFile</CODE> - The new destination File<DT><B>Since:</B></DT>
|
---|
823 | <DD>Ant 1.5</DD>
|
---|
824 | </DL>
|
---|
825 | </DD>
|
---|
826 | </DL>
|
---|
827 | <HR>
|
---|
828 |
|
---|
829 | <A NAME="getDestFile()"><!-- --></A><H3>
|
---|
830 | getDestFile</H3>
|
---|
831 | <PRE>
|
---|
832 | public java.io.File <B>getDestFile</B>()</PRE>
|
---|
833 | <DL>
|
---|
834 | <DD>The file to create.
|
---|
835 | <P>
|
---|
836 | <DD><DL>
|
---|
837 | <DT><B>Since:</B></DT>
|
---|
838 | <DD>Ant 1.5.2</DD>
|
---|
839 | </DL>
|
---|
840 | </DD>
|
---|
841 | </DL>
|
---|
842 | <HR>
|
---|
843 |
|
---|
844 | <A NAME="setBasedir(java.io.File)"><!-- --></A><H3>
|
---|
845 | setBasedir</H3>
|
---|
846 | <PRE>
|
---|
847 | public void <B>setBasedir</B>(java.io.File baseDir)</PRE>
|
---|
848 | <DL>
|
---|
849 | <DD>Directory from which to archive files; optional.
|
---|
850 | <P>
|
---|
851 | <DD><DL>
|
---|
852 | </DL>
|
---|
853 | </DD>
|
---|
854 | </DL>
|
---|
855 | <HR>
|
---|
856 |
|
---|
857 | <A NAME="setCompress(boolean)"><!-- --></A><H3>
|
---|
858 | setCompress</H3>
|
---|
859 | <PRE>
|
---|
860 | public void <B>setCompress</B>(boolean c)</PRE>
|
---|
861 | <DL>
|
---|
862 | <DD>Whether we want to compress the files or only store them;
|
---|
863 | optional, default=true;
|
---|
864 | <P>
|
---|
865 | <DD><DL>
|
---|
866 | </DL>
|
---|
867 | </DD>
|
---|
868 | </DL>
|
---|
869 | <HR>
|
---|
870 |
|
---|
871 | <A NAME="isCompress()"><!-- --></A><H3>
|
---|
872 | isCompress</H3>
|
---|
873 | <PRE>
|
---|
874 | public boolean <B>isCompress</B>()</PRE>
|
---|
875 | <DL>
|
---|
876 | <DD>Whether we want to compress the files or only store them;
|
---|
877 | <P>
|
---|
878 | <DD><DL>
|
---|
879 | <DT><B>Since:</B></DT>
|
---|
880 | <DD>Ant 1.5.2</DD>
|
---|
881 | </DL>
|
---|
882 | </DD>
|
---|
883 | </DL>
|
---|
884 | <HR>
|
---|
885 |
|
---|
886 | <A NAME="setFilesonly(boolean)"><!-- --></A><H3>
|
---|
887 | setFilesonly</H3>
|
---|
888 | <PRE>
|
---|
889 | public void <B>setFilesonly</B>(boolean f)</PRE>
|
---|
890 | <DL>
|
---|
891 | <DD>If true, emulate Sun's jar utility by not adding parent directories;
|
---|
892 | optional, defaults to false.
|
---|
893 | <P>
|
---|
894 | <DD><DL>
|
---|
895 | </DL>
|
---|
896 | </DD>
|
---|
897 | </DL>
|
---|
898 | <HR>
|
---|
899 |
|
---|
900 | <A NAME="setUpdate(boolean)"><!-- --></A><H3>
|
---|
901 | setUpdate</H3>
|
---|
902 | <PRE>
|
---|
903 | public void <B>setUpdate</B>(boolean c)</PRE>
|
---|
904 | <DL>
|
---|
905 | <DD>If true, updates an existing file, otherwise overwrite
|
---|
906 | any existing one; optional defaults to false.
|
---|
907 | <P>
|
---|
908 | <DD><DL>
|
---|
909 | </DL>
|
---|
910 | </DD>
|
---|
911 | </DL>
|
---|
912 | <HR>
|
---|
913 |
|
---|
914 | <A NAME="isInUpdateMode()"><!-- --></A><H3>
|
---|
915 | isInUpdateMode</H3>
|
---|
916 | <PRE>
|
---|
917 | public boolean <B>isInUpdateMode</B>()</PRE>
|
---|
918 | <DL>
|
---|
919 | <DD>Are we updating an existing archive?
|
---|
920 | <P>
|
---|
921 | <DD><DL>
|
---|
922 | </DL>
|
---|
923 | </DD>
|
---|
924 | </DL>
|
---|
925 | <HR>
|
---|
926 |
|
---|
927 | <A NAME="addFileset(org.apache.tools.ant.types.FileSet)"><!-- --></A><H3>
|
---|
928 | addFileset</H3>
|
---|
929 | <PRE>
|
---|
930 | public void <B>addFileset</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</PRE>
|
---|
931 | <DL>
|
---|
932 | <DD>Adds a set of files.
|
---|
933 | <P>
|
---|
934 | <DD><DL>
|
---|
935 | </DL>
|
---|
936 | </DD>
|
---|
937 | </DL>
|
---|
938 | <HR>
|
---|
939 |
|
---|
940 | <A NAME="addZipfileset(org.apache.tools.ant.types.ZipFileSet)"><!-- --></A><H3>
|
---|
941 | addZipfileset</H3>
|
---|
942 | <PRE>
|
---|
943 | public void <B>addZipfileset</B>(<A HREF="../../../../../org/apache/tools/ant/types/ZipFileSet.html" title="class in org.apache.tools.ant.types">ZipFileSet</A> set)</PRE>
|
---|
944 | <DL>
|
---|
945 | <DD>Adds a set of files that can be
|
---|
946 | read from an archive and be given a prefix/fullpath.
|
---|
947 | <P>
|
---|
948 | <DD><DL>
|
---|
949 | </DL>
|
---|
950 | </DD>
|
---|
951 | </DL>
|
---|
952 | <HR>
|
---|
953 |
|
---|
954 | <A NAME="addZipGroupFileset(org.apache.tools.ant.types.FileSet)"><!-- --></A><H3>
|
---|
955 | addZipGroupFileset</H3>
|
---|
956 | <PRE>
|
---|
957 | public void <B>addZipGroupFileset</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</PRE>
|
---|
958 | <DL>
|
---|
959 | <DD>Adds a group of zip files.
|
---|
960 | <P>
|
---|
961 | <DD><DL>
|
---|
962 | </DL>
|
---|
963 | </DD>
|
---|
964 | </DL>
|
---|
965 | <HR>
|
---|
966 |
|
---|
967 | <A NAME="setDuplicate(org.apache.tools.ant.taskdefs.Zip.Duplicate)"><!-- --></A><H3>
|
---|
968 | setDuplicate</H3>
|
---|
969 | <PRE>
|
---|
970 | public void <B>setDuplicate</B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.Duplicate.html" title="class in org.apache.tools.ant.taskdefs">Zip.Duplicate</A> df)</PRE>
|
---|
971 | <DL>
|
---|
972 | <DD>Sets behavior for when a duplicate file is about to be added -
|
---|
973 | one of <code>keep</code>, <code>skip</code> or <code>overwrite</code>.
|
---|
974 | Possible values are: <code>keep</code> (keep both
|
---|
975 | of the files); <code>skip</code> (keep the first version
|
---|
976 | of the file found); <code>overwrite</code> overwrite the file
|
---|
977 | with the new file
|
---|
978 | Default for zip tasks is <code>keep</code>
|
---|
979 | <P>
|
---|
980 | <DD><DL>
|
---|
981 | </DL>
|
---|
982 | </DD>
|
---|
983 | </DL>
|
---|
984 | <HR>
|
---|
985 |
|
---|
986 | <A NAME="setWhenempty(org.apache.tools.ant.taskdefs.Zip.WhenEmpty)"><!-- --></A><H3>
|
---|
987 | setWhenempty</H3>
|
---|
988 | <PRE>
|
---|
989 | public void <B>setWhenempty</B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.WhenEmpty.html" title="class in org.apache.tools.ant.taskdefs">Zip.WhenEmpty</A> we)</PRE>
|
---|
990 | <DL>
|
---|
991 | <DD>Sets behavior of the task when no files match.
|
---|
992 | Possible values are: <code>fail</code> (throw an exception
|
---|
993 | and halt the build); <code>skip</code> (do not create
|
---|
994 | any archive, but issue a warning); <code>create</code>
|
---|
995 | (make an archive with no entries).
|
---|
996 | Default for zip tasks is <code>skip</code>;
|
---|
997 | for jar tasks, <code>create</code>.
|
---|
998 | <P>
|
---|
999 | <DD><DL>
|
---|
1000 | </DL>
|
---|
1001 | </DD>
|
---|
1002 | </DL>
|
---|
1003 | <HR>
|
---|
1004 |
|
---|
1005 | <A NAME="setEncoding(java.lang.String)"><!-- --></A><H3>
|
---|
1006 | setEncoding</H3>
|
---|
1007 | <PRE>
|
---|
1008 | public void <B>setEncoding</B>(java.lang.String encoding)</PRE>
|
---|
1009 | <DL>
|
---|
1010 | <DD>Encoding to use for filenames, defaults to the platform's
|
---|
1011 | default encoding.
|
---|
1012 |
|
---|
1013 | <p>For a list of possible values see <a
|
---|
1014 | href="http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html">http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html</a>.</p>
|
---|
1015 | <P>
|
---|
1016 | <DD><DL>
|
---|
1017 | </DL>
|
---|
1018 | </DD>
|
---|
1019 | </DL>
|
---|
1020 | <HR>
|
---|
1021 |
|
---|
1022 | <A NAME="getEncoding()"><!-- --></A><H3>
|
---|
1023 | getEncoding</H3>
|
---|
1024 | <PRE>
|
---|
1025 | public java.lang.String <B>getEncoding</B>()</PRE>
|
---|
1026 | <DL>
|
---|
1027 | <DD>Encoding to use for filenames.
|
---|
1028 | <P>
|
---|
1029 | <DD><DL>
|
---|
1030 | <DT><B>Since:</B></DT>
|
---|
1031 | <DD>Ant 1.5.2</DD>
|
---|
1032 | </DL>
|
---|
1033 | </DD>
|
---|
1034 | </DL>
|
---|
1035 | <HR>
|
---|
1036 |
|
---|
1037 | <A NAME="setKeepCompression(boolean)"><!-- --></A><H3>
|
---|
1038 | setKeepCompression</H3>
|
---|
1039 | <PRE>
|
---|
1040 | public void <B>setKeepCompression</B>(boolean keep)</PRE>
|
---|
1041 | <DL>
|
---|
1042 | <DD>Whether the original compression of entries coming from a ZIP
|
---|
1043 | archive should be kept (for example when updating an archive).
|
---|
1044 | <P>
|
---|
1045 | <DD><DL>
|
---|
1046 | <DT><B>Since:</B></DT>
|
---|
1047 | <DD>Ant 1.6</DD>
|
---|
1048 | </DL>
|
---|
1049 | </DD>
|
---|
1050 | </DL>
|
---|
1051 | <HR>
|
---|
1052 |
|
---|
1053 | <A NAME="setComment(java.lang.String)"><!-- --></A><H3>
|
---|
1054 | setComment</H3>
|
---|
1055 | <PRE>
|
---|
1056 | public void <B>setComment</B>(java.lang.String comment)</PRE>
|
---|
1057 | <DL>
|
---|
1058 | <DD>Comment to use for archive.
|
---|
1059 | <P>
|
---|
1060 | <DD><DL>
|
---|
1061 | <DT><B>Parameters:</B><DD><CODE>comment</CODE> - The content of the comment.<DT><B>Since:</B></DT>
|
---|
1062 | <DD>Ant 1.6.3</DD>
|
---|
1063 | </DL>
|
---|
1064 | </DD>
|
---|
1065 | </DL>
|
---|
1066 | <HR>
|
---|
1067 |
|
---|
1068 | <A NAME="getComment()"><!-- --></A><H3>
|
---|
1069 | getComment</H3>
|
---|
1070 | <PRE>
|
---|
1071 | public java.lang.String <B>getComment</B>()</PRE>
|
---|
1072 | <DL>
|
---|
1073 | <DD>Comment of the archive
|
---|
1074 | <P>
|
---|
1075 | <DD><DL>
|
---|
1076 |
|
---|
1077 | <DT><B>Returns:</B><DD>Comment of the archive.<DT><B>Since:</B></DT>
|
---|
1078 | <DD>Ant 1.6.3</DD>
|
---|
1079 | </DL>
|
---|
1080 | </DD>
|
---|
1081 | </DL>
|
---|
1082 | <HR>
|
---|
1083 |
|
---|
1084 | <A NAME="setRoundUp(boolean)"><!-- --></A><H3>
|
---|
1085 | setRoundUp</H3>
|
---|
1086 | <PRE>
|
---|
1087 | public void <B>setRoundUp</B>(boolean r)</PRE>
|
---|
1088 | <DL>
|
---|
1089 | <DD>Whether the file modification times will be rounded up to the
|
---|
1090 | next even number of seconds.
|
---|
1091 |
|
---|
1092 | <p>Zip archives store file modification times with a
|
---|
1093 | granularity of two seconds, so the times will either be rounded
|
---|
1094 | up or down. If you round down, the archive will always seem
|
---|
1095 | out-of-date when you rerun the task, so the default is to round
|
---|
1096 | up. Rounding up may lead to a different type of problems like
|
---|
1097 | JSPs inside a web archive that seem to be slightly more recent
|
---|
1098 | than precompiled pages, rendering precompilation useless.</p>
|
---|
1099 | <P>
|
---|
1100 | <DD><DL>
|
---|
1101 | <DT><B>Since:</B></DT>
|
---|
1102 | <DD>Ant 1.6.2</DD>
|
---|
1103 | </DL>
|
---|
1104 | </DD>
|
---|
1105 | </DL>
|
---|
1106 | <HR>
|
---|
1107 |
|
---|
1108 | <A NAME="execute()"><!-- --></A><H3>
|
---|
1109 | execute</H3>
|
---|
1110 | <PRE>
|
---|
1111 | public void <B>execute</B>()
|
---|
1112 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1113 | <DL>
|
---|
1114 | <DD>validate and build
|
---|
1115 | <P>
|
---|
1116 | <DD><DL>
|
---|
1117 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
1118 | </DD>
|
---|
1119 | <DD><DL>
|
---|
1120 |
|
---|
1121 | <DT><B>Throws:</B>
|
---|
1122 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if something goes wrong with the build</DL>
|
---|
1123 | </DD>
|
---|
1124 | </DL>
|
---|
1125 | <HR>
|
---|
1126 |
|
---|
1127 | <A NAME="executeMain()"><!-- --></A><H3>
|
---|
1128 | executeMain</H3>
|
---|
1129 | <PRE>
|
---|
1130 | public void <B>executeMain</B>()
|
---|
1131 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1132 | <DL>
|
---|
1133 | <DD><DL>
|
---|
1134 |
|
---|
1135 | <DT><B>Throws:</B>
|
---|
1136 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE></DL>
|
---|
1137 | </DD>
|
---|
1138 | </DL>
|
---|
1139 | <HR>
|
---|
1140 |
|
---|
1141 | <A NAME="isAddingNewFiles()"><!-- --></A><H3>
|
---|
1142 | isAddingNewFiles</H3>
|
---|
1143 | <PRE>
|
---|
1144 | protected final boolean <B>isAddingNewFiles</B>()</PRE>
|
---|
1145 | <DL>
|
---|
1146 | <DD>Indicates if the task is adding new files into the archive as opposed to
|
---|
1147 | copying back unchanged files from the backup copy
|
---|
1148 | <P>
|
---|
1149 | <DD><DL>
|
---|
1150 | </DL>
|
---|
1151 | </DD>
|
---|
1152 | </DL>
|
---|
1153 | <HR>
|
---|
1154 |
|
---|
1155 | <A NAME="addResources(org.apache.tools.ant.types.FileSet, org.apache.tools.ant.types.Resource[], org.apache.tools.zip.ZipOutputStream)"><!-- --></A><H3>
|
---|
1156 | addResources</H3>
|
---|
1157 | <PRE>
|
---|
1158 | protected final void <B>addResources</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fileset,
|
---|
1159 | <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[] resources,
|
---|
1160 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)
|
---|
1161 | throws java.io.IOException</PRE>
|
---|
1162 | <DL>
|
---|
1163 | <DD>Add the given resources.
|
---|
1164 | <P>
|
---|
1165 | <DD><DL>
|
---|
1166 | <DT><B>Parameters:</B><DD><CODE>fileset</CODE> - may give additional information like fullpath or
|
---|
1167 | permissions.<DD><CODE>resources</CODE> - the resources to add<DD><CODE>zOut</CODE> - the stream to write to
|
---|
1168 | <DT><B>Throws:</B>
|
---|
1169 | <DD><CODE>java.io.IOException</CODE><DT><B>Since:</B></DT>
|
---|
1170 | <DD>Ant 1.5.2</DD>
|
---|
1171 | </DL>
|
---|
1172 | </DD>
|
---|
1173 | </DL>
|
---|
1174 | <HR>
|
---|
1175 |
|
---|
1176 | <A NAME="initZipOutputStream(org.apache.tools.zip.ZipOutputStream)"><!-- --></A><H3>
|
---|
1177 | initZipOutputStream</H3>
|
---|
1178 | <PRE>
|
---|
1179 | protected void <B>initZipOutputStream</B>(<A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)
|
---|
1180 | throws java.io.IOException,
|
---|
1181 | <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1182 | <DL>
|
---|
1183 | <DD>method for subclasses to override
|
---|
1184 | <P>
|
---|
1185 | <DD><DL>
|
---|
1186 |
|
---|
1187 | <DT><B>Throws:</B>
|
---|
1188 | <DD><CODE>java.io.IOException</CODE>
|
---|
1189 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE></DL>
|
---|
1190 | </DD>
|
---|
1191 | </DL>
|
---|
1192 | <HR>
|
---|
1193 |
|
---|
1194 | <A NAME="finalizeZipOutputStream(org.apache.tools.zip.ZipOutputStream)"><!-- --></A><H3>
|
---|
1195 | finalizeZipOutputStream</H3>
|
---|
1196 | <PRE>
|
---|
1197 | protected void <B>finalizeZipOutputStream</B>(<A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut)
|
---|
1198 | throws java.io.IOException,
|
---|
1199 | <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1200 | <DL>
|
---|
1201 | <DD>method for subclasses to override
|
---|
1202 | <P>
|
---|
1203 | <DD><DL>
|
---|
1204 |
|
---|
1205 | <DT><B>Throws:</B>
|
---|
1206 | <DD><CODE>java.io.IOException</CODE>
|
---|
1207 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE></DL>
|
---|
1208 | </DD>
|
---|
1209 | </DL>
|
---|
1210 | <HR>
|
---|
1211 |
|
---|
1212 | <A NAME="createEmptyZip(java.io.File)"><!-- --></A><H3>
|
---|
1213 | createEmptyZip</H3>
|
---|
1214 | <PRE>
|
---|
1215 | protected boolean <B>createEmptyZip</B>(java.io.File zipFile)
|
---|
1216 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1217 | <DL>
|
---|
1218 | <DD>Create an empty zip file
|
---|
1219 | <P>
|
---|
1220 | <DD><DL>
|
---|
1221 |
|
---|
1222 | <DT><B>Returns:</B><DD>true for historic reasons
|
---|
1223 | <DT><B>Throws:</B>
|
---|
1224 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE></DL>
|
---|
1225 | </DD>
|
---|
1226 | </DL>
|
---|
1227 | <HR>
|
---|
1228 |
|
---|
1229 | <A NAME="getResourcesToAdd(org.apache.tools.ant.types.FileSet[], java.io.File, boolean)"><!-- --></A><H3>
|
---|
1230 | getResourcesToAdd</H3>
|
---|
1231 | <PRE>
|
---|
1232 | protected <A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs">Zip.ArchiveState</A> <B>getResourcesToAdd</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A>[] filesets,
|
---|
1233 | java.io.File zipFile,
|
---|
1234 | boolean needsUpdate)
|
---|
1235 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
1236 | <DL>
|
---|
1237 | <DD>Collect the resources that are newer than the corresponding
|
---|
1238 | entries (or missing) in the original archive.
|
---|
1239 |
|
---|
1240 | <p>If we are going to recreate the archive instead of updating
|
---|
1241 | it, all resources should be considered as new, if a single one
|
---|
1242 | is. Because of this, subclasses overriding this method must
|
---|
1243 | call <code>super.getResourcesToAdd</code> and indicate with the
|
---|
1244 | third arg if they already know that the archive is
|
---|
1245 | out-of-date.</p>
|
---|
1246 | <P>
|
---|
1247 | <DD><DL>
|
---|
1248 | <DT><B>Parameters:</B><DD><CODE>filesets</CODE> - The filesets to grab resources from<DD><CODE>zipFile</CODE> - intended archive file (may or may not exist)<DD><CODE>needsUpdate</CODE> - whether we already know that the archive is
|
---|
1249 | out-of-date. Subclasses overriding this method are supposed to
|
---|
1250 | set this value correctly in their call to
|
---|
1251 | super.getResourcesToAdd.
|
---|
1252 | <DT><B>Returns:</B><DD>an array of resources to add for each fileset passed in as well
|
---|
1253 | as a flag that indicates whether the archive is uptodate.
|
---|
1254 | <DT><B>Throws:</B>
|
---|
1255 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if it likes</DL>
|
---|
1256 | </DD>
|
---|
1257 | </DL>
|
---|
1258 | <HR>
|
---|
1259 |
|
---|
1260 | <A NAME="grabResources(org.apache.tools.ant.types.FileSet[])"><!-- --></A><H3>
|
---|
1261 | grabResources</H3>
|
---|
1262 | <PRE>
|
---|
1263 | protected <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[][] <B>grabResources</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A>[] filesets)</PRE>
|
---|
1264 | <DL>
|
---|
1265 | <DD>Fetch all included and not excluded resources from the sets.
|
---|
1266 |
|
---|
1267 | <p>Included directories will precede included files.</p>
|
---|
1268 | <P>
|
---|
1269 | <DD><DL>
|
---|
1270 | <DT><B>Since:</B></DT>
|
---|
1271 | <DD>Ant 1.5.2</DD>
|
---|
1272 | </DL>
|
---|
1273 | </DD>
|
---|
1274 | </DL>
|
---|
1275 | <HR>
|
---|
1276 |
|
---|
1277 | <A NAME="zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)"><!-- --></A><H3>
|
---|
1278 | zipDir</H3>
|
---|
1279 | <PRE>
|
---|
1280 | protected void <B>zipDir</B>(java.io.File dir,
|
---|
1281 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
1282 | java.lang.String vPath,
|
---|
1283 | int mode)
|
---|
1284 | throws java.io.IOException</PRE>
|
---|
1285 | <DL>
|
---|
1286 | <DD><DL>
|
---|
1287 |
|
---|
1288 | <DT><B>Throws:</B>
|
---|
1289 | <DD><CODE>java.io.IOException</CODE><DT><B>Since:</B></DT>
|
---|
1290 | <DD>Ant 1.5.2</DD>
|
---|
1291 | </DL>
|
---|
1292 | </DD>
|
---|
1293 | </DL>
|
---|
1294 | <HR>
|
---|
1295 |
|
---|
1296 | <A NAME="zipDir(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int, org.apache.tools.zip.ZipExtraField[])"><!-- --></A><H3>
|
---|
1297 | zipDir</H3>
|
---|
1298 | <PRE>
|
---|
1299 | protected void <B>zipDir</B>(java.io.File dir,
|
---|
1300 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
1301 | java.lang.String vPath,
|
---|
1302 | int mode,
|
---|
1303 | <A HREF="../../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[] extra)
|
---|
1304 | throws java.io.IOException</PRE>
|
---|
1305 | <DL>
|
---|
1306 | <DD>Add a directory to the zip stream.
|
---|
1307 | <P>
|
---|
1308 | <DD><DL>
|
---|
1309 | <DT><B>Parameters:</B><DD><CODE>dir</CODE> - the directort to add to the archive<DD><CODE>zOut</CODE> - the stream to write to<DD><CODE>vPath</CODE> - the name this entry shall have in the archive<DD><CODE>mode</CODE> - the Unix permissions to set.<DD><CODE>extra</CODE> - ZipExtraFields to add
|
---|
1310 | <DT><B>Throws:</B>
|
---|
1311 | <DD><CODE>java.io.IOException</CODE> - on error<DT><B>Since:</B></DT>
|
---|
1312 | <DD>Ant 1.6.3</DD>
|
---|
1313 | </DL>
|
---|
1314 | </DD>
|
---|
1315 | </DL>
|
---|
1316 | <HR>
|
---|
1317 |
|
---|
1318 | <A NAME="zipFile(java.io.InputStream, org.apache.tools.zip.ZipOutputStream, java.lang.String, long, java.io.File, int)"><!-- --></A><H3>
|
---|
1319 | zipFile</H3>
|
---|
1320 | <PRE>
|
---|
1321 | protected void <B>zipFile</B>(java.io.InputStream in,
|
---|
1322 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
1323 | java.lang.String vPath,
|
---|
1324 | long lastModified,
|
---|
1325 | java.io.File fromArchive,
|
---|
1326 | int mode)
|
---|
1327 | throws java.io.IOException</PRE>
|
---|
1328 | <DL>
|
---|
1329 | <DD>Adds a new entry to the archive, takes care of duplicates as well.
|
---|
1330 | <P>
|
---|
1331 | <DD><DL>
|
---|
1332 | <DT><B>Parameters:</B><DD><CODE>in</CODE> - the stream to read data for the entry from.<DD><CODE>zOut</CODE> - the stream to write to.<DD><CODE>vPath</CODE> - the name this entry shall have in the archive.<DD><CODE>lastModified</CODE> - last modification time for the entry.<DD><CODE>fromArchive</CODE> - the original archive we are copying this
|
---|
1333 | entry from, will be null if we are not copying from an archive.<DD><CODE>mode</CODE> - the Unix permissions to set.
|
---|
1334 | <DT><B>Throws:</B>
|
---|
1335 | <DD><CODE>java.io.IOException</CODE><DT><B>Since:</B></DT>
|
---|
1336 | <DD>Ant 1.5.2</DD>
|
---|
1337 | </DL>
|
---|
1338 | </DD>
|
---|
1339 | </DL>
|
---|
1340 | <HR>
|
---|
1341 |
|
---|
1342 | <A NAME="zipFile(java.io.File, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)"><!-- --></A><H3>
|
---|
1343 | zipFile</H3>
|
---|
1344 | <PRE>
|
---|
1345 | protected void <B>zipFile</B>(java.io.File file,
|
---|
1346 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
1347 | java.lang.String vPath,
|
---|
1348 | int mode)
|
---|
1349 | throws java.io.IOException</PRE>
|
---|
1350 | <DL>
|
---|
1351 | <DD>Method that gets called when adding from java.io.File instances.
|
---|
1352 |
|
---|
1353 | <p>This implementation delegates to the six-arg version.</p>
|
---|
1354 | <P>
|
---|
1355 | <DD><DL>
|
---|
1356 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to add to the archive<DD><CODE>zOut</CODE> - the stream to write to<DD><CODE>vPath</CODE> - the name this entry shall have in the archive<DD><CODE>mode</CODE> - the Unix permissions to set.
|
---|
1357 | <DT><B>Throws:</B>
|
---|
1358 | <DD><CODE>java.io.IOException</CODE><DT><B>Since:</B></DT>
|
---|
1359 | <DD>Ant 1.5.2</DD>
|
---|
1360 | </DL>
|
---|
1361 | </DD>
|
---|
1362 | </DL>
|
---|
1363 | <HR>
|
---|
1364 |
|
---|
1365 | <A NAME="addParentDirs(java.io.File, java.lang.String, org.apache.tools.zip.ZipOutputStream, java.lang.String, int)"><!-- --></A><H3>
|
---|
1366 | addParentDirs</H3>
|
---|
1367 | <PRE>
|
---|
1368 | protected final void <B>addParentDirs</B>(java.io.File baseDir,
|
---|
1369 | java.lang.String entry,
|
---|
1370 | <A HREF="../../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip">ZipOutputStream</A> zOut,
|
---|
1371 | java.lang.String prefix,
|
---|
1372 | int dirMode)
|
---|
1373 | throws java.io.IOException</PRE>
|
---|
1374 | <DL>
|
---|
1375 | <DD>Ensure all parent dirs of a given entry have been added.
|
---|
1376 | <P>
|
---|
1377 | <DD><DL>
|
---|
1378 |
|
---|
1379 | <DT><B>Throws:</B>
|
---|
1380 | <DD><CODE>java.io.IOException</CODE><DT><B>Since:</B></DT>
|
---|
1381 | <DD>Ant 1.5.2</DD>
|
---|
1382 | </DL>
|
---|
1383 | </DD>
|
---|
1384 | </DL>
|
---|
1385 | <HR>
|
---|
1386 |
|
---|
1387 | <A NAME="cleanUp()"><!-- --></A><H3>
|
---|
1388 | cleanUp</H3>
|
---|
1389 | <PRE>
|
---|
1390 | protected void <B>cleanUp</B>()</PRE>
|
---|
1391 | <DL>
|
---|
1392 | <DD>Do any clean up necessary to allow this instance to be used again.
|
---|
1393 |
|
---|
1394 | <p>When we get here, the Zip file has been closed and all we
|
---|
1395 | need to do is to reset some globals.</p>
|
---|
1396 |
|
---|
1397 | <p>This method will only reset globals that have been changed
|
---|
1398 | during execute(), it will not alter the attributes or nested
|
---|
1399 | child elements. If you want to reset the instance so that you
|
---|
1400 | can later zip a completely different set of files, you must use
|
---|
1401 | the reset method.</p>
|
---|
1402 | <P>
|
---|
1403 | <DD><DL>
|
---|
1404 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#reset()"><CODE>reset()</CODE></A></DL>
|
---|
1405 | </DD>
|
---|
1406 | </DL>
|
---|
1407 | <HR>
|
---|
1408 |
|
---|
1409 | <A NAME="reset()"><!-- --></A><H3>
|
---|
1410 | reset</H3>
|
---|
1411 | <PRE>
|
---|
1412 | public void <B>reset</B>()</PRE>
|
---|
1413 | <DL>
|
---|
1414 | <DD>Makes this instance reset all attributes to their default
|
---|
1415 | values and forget all children.
|
---|
1416 | <P>
|
---|
1417 | <DD><DL>
|
---|
1418 | <DT><B>Since:</B></DT>
|
---|
1419 | <DD>Ant 1.5</DD>
|
---|
1420 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.html#cleanUp()"><CODE>cleanUp()</CODE></A></DL>
|
---|
1421 | </DD>
|
---|
1422 | </DL>
|
---|
1423 | <HR>
|
---|
1424 |
|
---|
1425 | <A NAME="isEmpty(org.apache.tools.ant.types.Resource[][])"><!-- --></A><H3>
|
---|
1426 | isEmpty</H3>
|
---|
1427 | <PRE>
|
---|
1428 | protected static final boolean <B>isEmpty</B>(<A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[][] r)</PRE>
|
---|
1429 | <DL>
|
---|
1430 | <DD><DL>
|
---|
1431 |
|
---|
1432 | <DT><B>Returns:</B><DD>true if all individual arrays are empty<DT><B>Since:</B></DT>
|
---|
1433 | <DD>Ant 1.5.2</DD>
|
---|
1434 | </DL>
|
---|
1435 | </DD>
|
---|
1436 | </DL>
|
---|
1437 | <HR>
|
---|
1438 |
|
---|
1439 | <A NAME="selectFileResources(org.apache.tools.ant.types.Resource[])"><!-- --></A><H3>
|
---|
1440 | selectFileResources</H3>
|
---|
1441 | <PRE>
|
---|
1442 | protected <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[] <B>selectFileResources</B>(<A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A>[] orig)</PRE>
|
---|
1443 | <DL>
|
---|
1444 | <DD>Drops all non-file resources from the given array.
|
---|
1445 | <P>
|
---|
1446 | <DD><DL>
|
---|
1447 | <DT><B>Since:</B></DT>
|
---|
1448 | <DD>Ant 1.6</DD>
|
---|
1449 | </DL>
|
---|
1450 | </DD>
|
---|
1451 | </DL>
|
---|
1452 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
1453 | <HR>
|
---|
1454 |
|
---|
1455 |
|
---|
1456 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
1457 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
1458 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
1459 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
1460 | <TR>
|
---|
1461 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
1462 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
1463 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
1464 | <TR ALIGN="center" VALIGN="top">
|
---|
1465 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
1466 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
1467 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
1468 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
1469 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
1470 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
1471 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
1472 | </TR>
|
---|
1473 | </TABLE>
|
---|
1474 | </TD>
|
---|
1475 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
1476 | </EM>
|
---|
1477 | </TD>
|
---|
1478 | </TR>
|
---|
1479 |
|
---|
1480 | <TR>
|
---|
1481 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1482 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/XSLTProcess.Param.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
1483 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Zip.ArchiveState.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
1484 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1485 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
1486 | <A HREF="Zip.html" target="_top"><B>NO FRAMES</B></A>
|
---|
1487 | <SCRIPT type="text/javascript">
|
---|
1488 | <!--
|
---|
1489 | if(window==top) {
|
---|
1490 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
1491 | }
|
---|
1492 | //-->
|
---|
1493 | </SCRIPT>
|
---|
1494 | <NOSCRIPT>
|
---|
1495 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
1496 | </NOSCRIPT>
|
---|
1497 |
|
---|
1498 | </FONT></TD>
|
---|
1499 | </TR>
|
---|
1500 | <TR>
|
---|
1501 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1502 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
1503 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1504 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
1505 | </TR>
|
---|
1506 | </TABLE>
|
---|
1507 | <A NAME="skip-navbar_bottom"></A>
|
---|
1508 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
1509 |
|
---|
1510 | <HR>
|
---|
1511 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
1512 | </BODY>
|
---|
1513 | </HTML>
|
---|