|
ZipScanner (Apache Ant API)
org.apache.tools.ant.types
|
Field Summary | |
protected java.io.File |
srcFile
The zip file which should be scanned. |
Fields inherited from class org.apache.tools.ant.DirectoryScanner |
basedir, DEFAULTEXCLUDES, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, selectors |
Constructor Summary | |
ZipScanner()
|
Method Summary | |
java.lang.String[] |
getIncludedDirectories()
Returns an empty list of directories to create. |
java.lang.String[] |
getIncludedFiles()
Returns the zip file itself, not the matching entries within the zip file. |
void |
init()
Initialize DirectoryScanner data structures. |
boolean |
match(java.lang.String path)
Matches a jar entry against the includes/excludes list, normalizing the path separator. |
void |
setSrc(java.io.File srcFile)
Sets the srcFile for scanning. |
Methods inherited from class org.apache.tools.ant.DirectoryScanner |
addDefaultExcludes, couldHoldIncluded, getBasedir, getDeselectedDirectories, getDeselectedFiles, getExcludedDirectories, getExcludedFiles, getNotIncludedDirectories, getNotIncludedFiles, isEverythingIncluded, isExcluded, isIncluded, isSelected, match, match, matchPath, matchPath, matchPatternStart, matchPatternStart, scan, scandir, setBasedir, setBasedir, setCaseSensitive, setExcludes, setFollowSymlinks, setIncludes, setSelectors, slowScan |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File srcFile
Constructor Detail |
public ZipScanner()
Method Detail |
public void setSrc(java.io.File srcFile)
srcFile
- the (non-null) zip file name for scanningpublic java.lang.String[] getIncludedFiles()
getIncludedFiles
in interface FileScanner
getIncludedFiles
in class DirectoryScanner
public java.lang.String[] getIncludedDirectories()
getIncludedDirectories
in interface FileScanner
getIncludedDirectories
in class DirectoryScanner
public void init()
public boolean match(java.lang.String path)
path
- the (non-null) path name to test for inclusion
true
if the path should be included
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |