it.haefelinger.flaka
Class Find

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by it.haefelinger.flaka.Find
All Implemented Interfaces:
Cloneable, SelectorContainer

public class Find
extends MatchingTask

A task echoing files in a fileset similar as the Unix command find would do.

Since:
1.0
Author:
merzedes

Field Summary
protected  String srcdir
           
protected  String type
           
protected  String var
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Find()
           
 
Method Summary
 void execute()
          perfoms the find operation.
protected  DirectoryScanner getds(File dir)
           
protected  void scan(File dir, List C)
           
protected  void set(String name, String value)
           
 void setDir(String dir)
           
 void setType(String type)
           
 void setVar(String var)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcdir

protected String srcdir

type

protected String type

var

protected String var
Constructor Detail

Find

public Find()
Method Detail

setVar

public void setVar(String var)

setDir

public void setDir(String dir)

setType

public void setType(String type)

getds

protected DirectoryScanner getds(File dir)

scan

protected void scan(File dir,
                    List C)

set

protected void set(String name,
                   String value)

execute

public void execute()
             throws BuildException
perfoms the find operation.

Overrides:
execute in class Task
Throws:
BuildException - if an error occurs