public class FileScanner
extends Task
FileScanner is a bean which allows the iteration
over a number of files from a collection of FileSet instances.
| Constructor and description |
|---|
FileScanner()Creates a scanner with no associated project. |
FileScanner(Project project)Creates a scanner bound to the supplied Ant project. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addFileset(FileSet set)Adds a set of files (nested fileset attribute). |
|
public void |
clear()Clears any file sets that have been added to this scanner |
|
public Iterator<File> |
directories()Returns an iterator over the directories matched by the configured file sets. |
|
public boolean |
hasFiles()Indicates whether any file sets have been configured. |
|
public Iterator<File> |
iterator()Returns an iterator over the files matched by the configured file sets. |
| Methods inherited from class | Name |
|---|---|
class Task |
bindToOwner, clone, equals, execute, getClass, getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, getTaskType, hashCode, init, log, log, log, log, maybeConfigure, notify, notifyAll, perform, reconfigure, setDescription, setLocation, setOwningTarget, setProject, setRuntimeConfigurableWrapper, setTaskName, setTaskType, toString, wait, wait, wait |
Creates a scanner with no associated project.
Creates a scanner bound to the supplied Ant project.
project - the owning Ant projectAdds a set of files (nested fileset attribute).
set - the file set to addClears any file sets that have been added to this scanner
Returns an iterator over the directories matched by the configured file sets.
Indicates whether any file sets have been configured.
true if at least one file set has been addedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.