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:32 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | ZipScanner (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.types.ZipScanner 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="ZipScanner (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/types/ZipFileSet.html" title="class in org.apache.tools.ant.types"><B>PREV CLASS</B></A>
|
---|
53 | NEXT CLASS</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="ZipScanner.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: NESTED | <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.types</FONT>
|
---|
85 | <BR>
|
---|
86 | Class ZipScanner</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">org.apache.tools.ant.DirectoryScanner</A>
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.types.ZipScanner</B>
|
---|
91 | </PRE>
|
---|
92 | <DL>
|
---|
93 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/FileScanner.html" title="interface in org.apache.tools.ant">FileScanner</A>, <A HREF="../../../../../org/apache/tools/ant/types/ResourceFactory.html" title="interface in org.apache.tools.ant.types">ResourceFactory</A>, <A HREF="../../../../../org/apache/tools/ant/types/selectors/SelectorScanner.html" title="interface in org.apache.tools.ant.types.selectors">SelectorScanner</A></DD>
|
---|
94 | </DL>
|
---|
95 | <HR>
|
---|
96 | <DL>
|
---|
97 | <DT>public class <B>ZipScanner</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></DL>
|
---|
98 |
|
---|
99 | <P>
|
---|
100 | ZipScanner accesses the pattern matching algorithm in DirectoryScanner,
|
---|
101 | which are protected methods that can only be accessed by subclassing.
|
---|
102 |
|
---|
103 | This implementation of FileScanner defines getIncludedFiles to return
|
---|
104 | the matching Zip entries.
|
---|
105 | <P>
|
---|
106 |
|
---|
107 | <P>
|
---|
108 | <HR>
|
---|
109 |
|
---|
110 | <P>
|
---|
111 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
112 |
|
---|
113 |
|
---|
114 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
115 |
|
---|
116 | <A NAME="field_summary"><!-- --></A>
|
---|
117 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
118 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
119 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
120 | <B>Field Summary</B></FONT></TD>
|
---|
121 | </TR>
|
---|
122 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
123 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
124 | <CODE>protected java.io.File</CODE></FONT></TD>
|
---|
125 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#srcFile">srcFile</A></B></CODE>
|
---|
126 |
|
---|
127 | <BR>
|
---|
128 | The zip file which should be scanned.</TD>
|
---|
129 | </TR>
|
---|
130 | </TABLE>
|
---|
131 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.DirectoryScanner"><!-- --></A>
|
---|
132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
133 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
134 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></B></TD>
|
---|
135 | </TR>
|
---|
136 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
137 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#basedir">basedir</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#DEFAULTEXCLUDES">DEFAULTEXCLUDES</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#dirsDeselected">dirsDeselected</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#dirsExcluded">dirsExcluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#dirsIncluded">dirsIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#dirsNotIncluded">dirsNotIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#everythingIncluded">everythingIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#excludes">excludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#filesDeselected">filesDeselected</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#filesExcluded">filesExcluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#filesIncluded">filesIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#filesNotIncluded">filesNotIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#haveSlowResults">haveSlowResults</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#includes">includes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isCaseSensitive">isCaseSensitive</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#selectors">selectors</A></CODE></TD>
|
---|
138 | </TR>
|
---|
139 | </TABLE>
|
---|
140 |
|
---|
141 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
142 |
|
---|
143 | <A NAME="constructor_summary"><!-- --></A>
|
---|
144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
145 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
146 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
147 | <B>Constructor Summary</B></FONT></TD>
|
---|
148 | </TR>
|
---|
149 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
150 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#ZipScanner()">ZipScanner</A></B>()</CODE>
|
---|
151 |
|
---|
152 | <BR>
|
---|
153 | </TD>
|
---|
154 | </TR>
|
---|
155 | </TABLE>
|
---|
156 |
|
---|
157 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
158 |
|
---|
159 | <A NAME="method_summary"><!-- --></A>
|
---|
160 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
161 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
162 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
163 | <B>Method Summary</B></FONT></TD>
|
---|
164 | </TR>
|
---|
165 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
166 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
167 | <CODE> java.lang.String[]</CODE></FONT></TD>
|
---|
168 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#getIncludedDirectories()">getIncludedDirectories</A></B>()</CODE>
|
---|
169 |
|
---|
170 | <BR>
|
---|
171 | Returns the names of the directories which matched at least one of the
|
---|
172 | include patterns and none of the exclude patterns.</TD>
|
---|
173 | </TR>
|
---|
174 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
176 | <CODE> java.lang.String[]</CODE></FONT></TD>
|
---|
177 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#getIncludedFiles()">getIncludedFiles</A></B>()</CODE>
|
---|
178 |
|
---|
179 | <BR>
|
---|
180 | Returns the names of the files which matched at least one of the
|
---|
181 | include patterns and none of the exclude patterns.</TD>
|
---|
182 | </TR>
|
---|
183 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
185 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A></CODE></FONT></TD>
|
---|
186 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#getResource(java.lang.String)">getResource</A></B>(java.lang.String name)</CODE>
|
---|
187 |
|
---|
188 | <BR>
|
---|
189 | Get the named resource.</TD>
|
---|
190 | </TR>
|
---|
191 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
193 | <CODE> void</CODE></FONT></TD>
|
---|
194 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#init()">init</A></B>()</CODE>
|
---|
195 |
|
---|
196 | <BR>
|
---|
197 | Initialize DirectoryScanner data structures.</TD>
|
---|
198 | </TR>
|
---|
199 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
201 | <CODE> boolean</CODE></FONT></TD>
|
---|
202 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#match(java.lang.String)">match</A></B>(java.lang.String path)</CODE>
|
---|
203 |
|
---|
204 | <BR>
|
---|
205 | Matches a jar entry against the includes/excludes list,
|
---|
206 | normalizing the path separator.</TD>
|
---|
207 | </TR>
|
---|
208 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
209 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
210 | <CODE> void</CODE></FONT></TD>
|
---|
211 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#setEncoding(java.lang.String)">setEncoding</A></B>(java.lang.String encoding)</CODE>
|
---|
212 |
|
---|
213 | <BR>
|
---|
214 | Sets encoding of file names.</TD>
|
---|
215 | </TR>
|
---|
216 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
217 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
218 | <CODE> void</CODE></FONT></TD>
|
---|
219 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/ZipScanner.html#setSrc(java.io.File)">setSrc</A></B>(java.io.File srcFile)</CODE>
|
---|
220 |
|
---|
221 | <BR>
|
---|
222 | Sets the srcFile for scanning.</TD>
|
---|
223 | </TR>
|
---|
224 | </TABLE>
|
---|
225 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.DirectoryScanner"><!-- --></A>
|
---|
226 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
227 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
228 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></B></TD>
|
---|
229 | </TR>
|
---|
230 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
231 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#addDefaultExclude(java.lang.String)">addDefaultExclude</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#addDefaultExcludes()">addDefaultExcludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#addExcludes(java.lang.String[])">addExcludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#clearResults()">clearResults</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#couldHoldIncluded(java.lang.String)">couldHoldIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getBasedir()">getBasedir</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getDefaultExcludes()">getDefaultExcludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getDeselectedDirectories()">getDeselectedDirectories</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getDeselectedFiles()">getDeselectedFiles</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getExcludedDirectories()">getExcludedDirectories</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getExcludedFiles()">getExcludedFiles</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getIncludedDirsCount()">getIncludedDirsCount</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getIncludedFilesCount()">getIncludedFilesCount</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getNotIncludedDirectories()">getNotIncludedDirectories</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getNotIncludedFiles()">getNotIncludedFiles</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isCaseSensitive()">isCaseSensitive</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isEverythingIncluded()">isEverythingIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isExcluded(java.lang.String)">isExcluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isFollowSymlinks()">isFollowSymlinks</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isIncluded(java.lang.String)">isIncluded</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#isSelected(java.lang.String, java.io.File)">isSelected</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#match(java.lang.String, java.lang.String)">match</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#match(java.lang.String, java.lang.String, boolean)">match</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#matchPath(java.lang.String, java.lang.String)">matchPath</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#matchPath(java.lang.String, java.lang.String, boolean)">matchPath</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#matchPatternStart(java.lang.String, java.lang.String)">matchPatternStart</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#matchPatternStart(java.lang.String, java.lang.String, boolean)">matchPatternStart</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#removeDefaultExclude(java.lang.String)">removeDefaultExclude</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#resetDefaultExcludes()">resetDefaultExcludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#scan()">scan</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#scandir(java.io.File, java.lang.String, boolean)">scandir</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setBasedir(java.io.File)">setBasedir</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setBasedir(java.lang.String)">setBasedir</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setCaseSensitive(boolean)">setCaseSensitive</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setExcludes(java.lang.String[])">setExcludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setFollowSymlinks(boolean)">setFollowSymlinks</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setIncludes(java.lang.String[])">setIncludes</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#setSelectors(org.apache.tools.ant.types.selectors.FileSelector[])">setSelectors</A>, <A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#slowScan()">slowScan</A></CODE></TD>
|
---|
232 | </TR>
|
---|
233 | </TABLE>
|
---|
234 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
235 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
236 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
237 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
238 | </TR>
|
---|
239 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
240 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
241 | </TR>
|
---|
242 | </TABLE>
|
---|
243 |
|
---|
244 | <P>
|
---|
245 |
|
---|
246 | <!-- ============ FIELD DETAIL =========== -->
|
---|
247 |
|
---|
248 | <A NAME="field_detail"><!-- --></A>
|
---|
249 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
250 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
251 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
252 | <B>Field Detail</B></FONT></TD>
|
---|
253 | </TR>
|
---|
254 | </TABLE>
|
---|
255 |
|
---|
256 | <A NAME="srcFile"><!-- --></A><H3>
|
---|
257 | srcFile</H3>
|
---|
258 | <PRE>
|
---|
259 | protected java.io.File <B>srcFile</B></PRE>
|
---|
260 | <DL>
|
---|
261 | <DD>The zip file which should be scanned.
|
---|
262 | <P>
|
---|
263 | <DL>
|
---|
264 | </DL>
|
---|
265 | </DL>
|
---|
266 |
|
---|
267 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
268 |
|
---|
269 | <A NAME="constructor_detail"><!-- --></A>
|
---|
270 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
271 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
272 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
273 | <B>Constructor Detail</B></FONT></TD>
|
---|
274 | </TR>
|
---|
275 | </TABLE>
|
---|
276 |
|
---|
277 | <A NAME="ZipScanner()"><!-- --></A><H3>
|
---|
278 | ZipScanner</H3>
|
---|
279 | <PRE>
|
---|
280 | public <B>ZipScanner</B>()</PRE>
|
---|
281 | <DL>
|
---|
282 | </DL>
|
---|
283 |
|
---|
284 | <!-- ============ METHOD DETAIL ========== -->
|
---|
285 |
|
---|
286 | <A NAME="method_detail"><!-- --></A>
|
---|
287 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
288 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
289 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
290 | <B>Method Detail</B></FONT></TD>
|
---|
291 | </TR>
|
---|
292 | </TABLE>
|
---|
293 |
|
---|
294 | <A NAME="setSrc(java.io.File)"><!-- --></A><H3>
|
---|
295 | setSrc</H3>
|
---|
296 | <PRE>
|
---|
297 | public void <B>setSrc</B>(java.io.File srcFile)</PRE>
|
---|
298 | <DL>
|
---|
299 | <DD>Sets the srcFile for scanning. This is the jar or zip file that
|
---|
300 | is scanned for matching entries.
|
---|
301 | <P>
|
---|
302 | <DD><DL>
|
---|
303 | <DT><B>Parameters:</B><DD><CODE>srcFile</CODE> - the (non-null) zip file name for scanning</DL>
|
---|
304 | </DD>
|
---|
305 | </DL>
|
---|
306 | <HR>
|
---|
307 |
|
---|
308 | <A NAME="setEncoding(java.lang.String)"><!-- --></A><H3>
|
---|
309 | setEncoding</H3>
|
---|
310 | <PRE>
|
---|
311 | public void <B>setEncoding</B>(java.lang.String encoding)</PRE>
|
---|
312 | <DL>
|
---|
313 | <DD>Sets encoding of file names.
|
---|
314 | <P>
|
---|
315 | <DD><DL>
|
---|
316 | <DT><B>Since:</B></DT>
|
---|
317 | <DD>Ant 1.6</DD>
|
---|
318 | </DL>
|
---|
319 | </DD>
|
---|
320 | </DL>
|
---|
321 | <HR>
|
---|
322 |
|
---|
323 | <A NAME="getIncludedFiles()"><!-- --></A><H3>
|
---|
324 | getIncludedFiles</H3>
|
---|
325 | <PRE>
|
---|
326 | public java.lang.String[] <B>getIncludedFiles</B>()</PRE>
|
---|
327 | <DL>
|
---|
328 | <DD>Returns the names of the files which matched at least one of the
|
---|
329 | include patterns and none of the exclude patterns.
|
---|
330 | The names are relative to the base directory.
|
---|
331 | <P>
|
---|
332 | <DD><DL>
|
---|
333 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/FileScanner.html#getIncludedFiles()">getIncludedFiles</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/FileScanner.html" title="interface in org.apache.tools.ant">FileScanner</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getIncludedFiles()">getIncludedFiles</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></CODE></DL>
|
---|
334 | </DD>
|
---|
335 | <DD><DL>
|
---|
336 |
|
---|
337 | <DT><B>Returns:</B><DD>the names of the files which matched at least one of the
|
---|
338 | include patterns and none of the exclude patterns.</DL>
|
---|
339 | </DD>
|
---|
340 | </DL>
|
---|
341 | <HR>
|
---|
342 |
|
---|
343 | <A NAME="getIncludedDirectories()"><!-- --></A><H3>
|
---|
344 | getIncludedDirectories</H3>
|
---|
345 | <PRE>
|
---|
346 | public java.lang.String[] <B>getIncludedDirectories</B>()</PRE>
|
---|
347 | <DL>
|
---|
348 | <DD>Returns the names of the directories which matched at least one of the
|
---|
349 | include patterns and none of the exclude patterns.
|
---|
350 | The names are relative to the base directory.
|
---|
351 | <P>
|
---|
352 | <DD><DL>
|
---|
353 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/FileScanner.html#getIncludedDirectories()">getIncludedDirectories</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/FileScanner.html" title="interface in org.apache.tools.ant">FileScanner</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getIncludedDirectories()">getIncludedDirectories</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></CODE></DL>
|
---|
354 | </DD>
|
---|
355 | <DD><DL>
|
---|
356 |
|
---|
357 | <DT><B>Returns:</B><DD>the names of the directories which matched at least one of the
|
---|
358 | include patterns and none of the exclude patterns.</DL>
|
---|
359 | </DD>
|
---|
360 | </DL>
|
---|
361 | <HR>
|
---|
362 |
|
---|
363 | <A NAME="init()"><!-- --></A><H3>
|
---|
364 | init</H3>
|
---|
365 | <PRE>
|
---|
366 | public void <B>init</B>()</PRE>
|
---|
367 | <DL>
|
---|
368 | <DD>Initialize DirectoryScanner data structures.
|
---|
369 | <P>
|
---|
370 | <DD><DL>
|
---|
371 | </DL>
|
---|
372 | </DD>
|
---|
373 | </DL>
|
---|
374 | <HR>
|
---|
375 |
|
---|
376 | <A NAME="match(java.lang.String)"><!-- --></A><H3>
|
---|
377 | match</H3>
|
---|
378 | <PRE>
|
---|
379 | public boolean <B>match</B>(java.lang.String path)</PRE>
|
---|
380 | <DL>
|
---|
381 | <DD>Matches a jar entry against the includes/excludes list,
|
---|
382 | normalizing the path separator.
|
---|
383 | <P>
|
---|
384 | <DD><DL>
|
---|
385 | <DT><B>Parameters:</B><DD><CODE>path</CODE> - the (non-null) path name to test for inclusion
|
---|
386 | <DT><B>Returns:</B><DD><code>true</code> if the path should be included
|
---|
387 | <code>false</code> otherwise.</DL>
|
---|
388 | </DD>
|
---|
389 | </DL>
|
---|
390 | <HR>
|
---|
391 |
|
---|
392 | <A NAME="getResource(java.lang.String)"><!-- --></A><H3>
|
---|
393 | getResource</H3>
|
---|
394 | <PRE>
|
---|
395 | public <A HREF="../../../../../org/apache/tools/ant/types/Resource.html" title="class in org.apache.tools.ant.types">Resource</A> <B>getResource</B>(java.lang.String name)</PRE>
|
---|
396 | <DL>
|
---|
397 | <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></CODE></B></DD>
|
---|
398 | <DD>Get the named resource.
|
---|
399 | <P>
|
---|
400 | <DD><DL>
|
---|
401 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/types/ResourceFactory.html#getResource(java.lang.String)">getResource</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/types/ResourceFactory.html" title="interface in org.apache.tools.ant.types">ResourceFactory</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html#getResource(java.lang.String)">getResource</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant">DirectoryScanner</A></CODE></DL>
|
---|
402 | </DD>
|
---|
403 | <DD><DL>
|
---|
404 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - path name of the file sought in the archive
|
---|
405 | <DT><B>Returns:</B><DD>the resource with the given name.<DT><B>Since:</B></DT>
|
---|
406 | <DD>Ant 1.5.2</DD>
|
---|
407 | </DL>
|
---|
408 | </DD>
|
---|
409 | </DL>
|
---|
410 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
411 | <HR>
|
---|
412 |
|
---|
413 |
|
---|
414 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
415 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
416 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
417 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
418 | <TR>
|
---|
419 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
420 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
421 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
422 | <TR ALIGN="center" VALIGN="top">
|
---|
423 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
424 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
425 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
426 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
427 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
428 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
429 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
430 | </TR>
|
---|
431 | </TABLE>
|
---|
432 | </TD>
|
---|
433 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
434 | </EM>
|
---|
435 | </TD>
|
---|
436 | </TR>
|
---|
437 |
|
---|
438 | <TR>
|
---|
439 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
440 | <A HREF="../../../../../org/apache/tools/ant/types/ZipFileSet.html" title="class in org.apache.tools.ant.types"><B>PREV CLASS</B></A>
|
---|
441 | NEXT CLASS</FONT></TD>
|
---|
442 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
443 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
444 | <A HREF="ZipScanner.html" target="_top"><B>NO FRAMES</B></A>
|
---|
445 | <SCRIPT type="text/javascript">
|
---|
446 | <!--
|
---|
447 | if(window==top) {
|
---|
448 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
449 | }
|
---|
450 | //-->
|
---|
451 | </SCRIPT>
|
---|
452 | <NOSCRIPT>
|
---|
453 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
454 | </NOSCRIPT>
|
---|
455 |
|
---|
456 | </FONT></TD>
|
---|
457 | </TR>
|
---|
458 | <TR>
|
---|
459 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
460 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
461 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
462 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
463 | </TR>
|
---|
464 | </TABLE>
|
---|
465 | <A NAME="skip-navbar_bottom"></A>
|
---|
466 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
467 |
|
---|
468 | <HR>
|
---|
469 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
470 | </BODY>
|
---|
471 | </HTML>
|
---|