Package ise.antelope.tasks
Class Find
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ise.antelope.tasks.Find
- All Implemented Interfaces:
Cloneable
public class Find
extends org.apache.tools.ant.Task
Copyright 2003
- Version:
- $Revision: 131 $
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Do the grepvoidsetAllmatches(boolean b) If true, concatentates all matches into a single result, if false, only the first match is returned in the result.voidsetCanoneq(boolean b) Sets the canoneq attribute for the regex.voidsetCaseinsensitive(boolean b) Sets the caseinsensitive attribute for the regex.voidsetComments(boolean b) Sets the comments attribute for the regex.voidsetDotall(boolean b) Sets the dotall attribute for the regex.voidsetGroup(int g) Set a specific group from the regex.voidWhere to look.voidsetMultiline(boolean b) Sets the multiline attribute for the regex.voidsetProperty(String name) Where to put the results of the search.voidWhat to look for.voidUses in conjunction withsetAllmatches, this string will be placed between each match in the final result.voidsetUnicodecase(boolean b) Sets the unicodecase attribute for the regex.voidsetUnixlines(boolean b) 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
Find
public Find()
-
-
Method Details
-
setIn
Where to look.- Parameters:
string- The new in value
-
setRegex
What to look for.- Parameters:
regex- The new regex value
-
setProperty
Where to put the results of the search. If 'allmatches' is true, then a second property with this name plus "_count" will be created with the number of matches found.- Parameters:
name- The new property value
-
setGroup
public void setGroup(int g) Set a specific group from the regex.- Parameters:
g- The new group value
-
setDotall
public void setDotall(boolean b) Sets the dotall attribute for the regex.- Parameters:
b- The new dotall value
-
setCaseinsensitive
public void setCaseinsensitive(boolean b) Sets the caseinsensitive attribute for the regex.- Parameters:
b- The new caseinsensitive value
-
setMultiline
public void setMultiline(boolean b) Sets the multiline attribute for the regex.- Parameters:
b- The new multiline value
-
setUnicodecase
public void setUnicodecase(boolean b) Sets the unicodecase attribute for the regex.- Parameters:
b- The new unicodecase value
-
setCanoneq
public void setCanoneq(boolean b) Sets the canoneq attribute for the regex.- Parameters:
b- The new canoneq value
-
setComments
public void setComments(boolean b) Sets the comments attribute for the regex.- Parameters:
b- The new comments value
-
setUnixlines
public void setUnixlines(boolean b) -
setAllmatches
public void setAllmatches(boolean b) If true, concatentates all matches into a single result, if false, only the first match is returned in the result.- Parameters:
b- default is false, only show the first match.
-
setSeparator
Uses in conjunction withsetAllmatches, this string will be placed between each match in the final result.- Parameters:
s- the separator, default is "".
-
execute
public void execute()Do the grep- Overrides:
executein classorg.apache.tools.ant.Task
-