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, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Do the grepvoid
setAllmatches
(boolean b) If true, concatentates all matches into a single result, if false, only the first match is returned in the result.void
setCanoneq
(boolean b) Sets the canoneq attribute for the regex.void
setCaseinsensitive
(boolean b) Sets the caseinsensitive attribute for the regex.void
setComments
(boolean b) Sets the comments attribute for the regex.void
setDotall
(boolean b) Sets the dotall attribute for the regex.void
setGroup
(int g) Set a specific group from the regex.void
Where to look.void
setMultiline
(boolean b) Sets the multiline attribute for the regex.void
setProperty
(String name) Where to put the results of the search.void
What to look for.void
Uses in conjunction withsetAllmatches
, this string will be placed between each match in the final result.void
setUnicodecase
(boolean b) Sets the unicodecase attribute for the regex.void
setUnixlines
(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
Methods 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:
execute
in classorg.apache.tools.ant.Task
-