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:
java.lang.Cloneable
public class Find extends org.apache.tools.ant.TaskCopyright 2003- Version:
- $Revision: 131 $
-
-
Constructor Summary
Constructors Constructor Description Find()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()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.voidsetIn(java.lang.String string)Where to look.voidsetMultiline(boolean b)Sets the multiline attribute for the regex.voidsetProperty(java.lang.String name)Where to put the results of the search.voidsetRegex(java.lang.String regex)What to look for.voidsetSeparator(java.lang.String s)Uses 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, setTaskType
-
-
-
-
Method Detail
-
setIn
public void setIn(java.lang.String string)
Where to look.- Parameters:
string- The new in value
-
setRegex
public void setRegex(java.lang.String regex)
What to look for.- Parameters:
regex- The new regex value
-
setProperty
public void setProperty(java.lang.String name)
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
public void setSeparator(java.lang.String s)
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
-
-