org.apache.tools.ant.types
public class ZipScanner extends DirectoryScanner
Field Summary | |
---|---|
protected File | srcFile
The zip file which should be scanned. |
Method Summary | |
---|---|
String[] | getIncludedDirectories()
Returns the names of the directories which matched at least one of the
include patterns and none of the exclude patterns.
|
String[] | getIncludedFiles()
Returns the names of the files which matched at least one of the
include patterns and none of the exclude patterns.
|
Resource | getResource(String name) |
void | init()
Initialize DirectoryScanner data structures. |
boolean | match(String path)
Matches a jar entry against the includes/excludes list,
normalizing the path separator.
|
void | setEncoding(String encoding)
Sets encoding of file names.
|
void | setSrc(File srcFile)
Sets the srcFile for scanning. |
Returns: the names of the directories which matched at least one of the include patterns and none of the exclude patterns.
Returns: the names of the files which matched at least one of the include patterns and none of the exclude patterns.
Parameters: name path name of the file sought in the archive
Since: Ant 1.5.2
Parameters: path the (non-null) path name to test for inclusion
Returns: true
if the path should be included
false
otherwise.
Since: Ant 1.6
Parameters: srcFile the (non-null) zip file name for scanning