org.codehaus.groovy.ant
Class FileScanner

java.lang.Object
  extended byorg.codehaus.groovy.ant.FileScanner

public class FileScanner
extends java.lang.Object

FileScanner is a bean which allows the iteration over a number of files from a colleciton of FileSet instances.

Version:
$Revision: 1.1 $
Author:
James Strachan

Field Summary
private  java.util.List filesets
          FileSets
private  Project project
          The Ant project
 
Constructor Summary
FileScanner()
           
FileScanner(Project project)
           
 
Method Summary
 void addFileset(FileSet set)
          Adds a set of files (nested fileset attribute).
 void clear()
          Clears any file sets that have been added to this scanner
 java.util.Iterator directories()
           
 boolean hasFiles()
           
 java.util.Iterator iterator()
           
 void setProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filesets

private java.util.List filesets
FileSets


project

private Project project
The Ant project

Constructor Detail

FileScanner

public FileScanner()

FileScanner

public FileScanner(Project project)
Method Detail

setProject

public void setProject(Project project)

iterator

public java.util.Iterator iterator()

directories

public java.util.Iterator directories()

hasFiles

public boolean hasFiles()

clear

public void clear()
Clears any file sets that have been added to this scanner


addFileset

public void addFileset(FileSet set)
Adds a set of files (nested fileset attribute).



Copyright © 2003-2005 The Codehaus. All Rights Reserved.