On this page
[Java] Class FileScanner
- org.codehaus.groovy.ant.FileScanner
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 Summary
Constructor and description |
---|
FileScanner () |
FileScanner (Project project) |
Methods Summary
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 |
directories() |
|
public boolean |
hasFiles() |
|
public Iterator |
iterator() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Task |
getTaskName, setRuntimeConfigurableWrapper, getRuntimeConfigurableWrapper, maybeConfigure, setTaskType, setOwningTarget, getOwningTarget, setTaskName, getTaskType, reconfigure, perform, bindToOwner, log, log, log, log, init, execute, getDescription, getProject, setDescription, setLocation, setProject, clone, getLocation, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public FileScanner()
public FileScanner(Project project)
Method Detail
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 directories()
public boolean hasFiles()
public Iterator iterator()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.9/html/gapi/org/codehaus/groovy/ant/FileScanner.html