org.apache.tools.ant.types.selectors
public class ContainsRegexpSelector extends BaseExtendSelector
Since: Ant 1.6
Field Summary | |
---|---|
static String | EXPRESSION_KEY Key to used for parameterized custom selector |
Constructor Summary | |
---|---|
ContainsRegexpSelector()
Creates a new ContainsRegexpSelector instance. |
Method Summary | |
---|---|
boolean | isSelected(File basedir, String filename, File file)
Tests a regular expression against each line of text in the file.
|
void | setExpression(String theexpression)
The regular expression used to search the file.
|
void | setParameters(Parameter[] parameters)
When using this as a custom selector, this method will be called.
|
String | toString() |
void | verifySettings()
Checks that an expression was specified.
|
ContainsRegexpSelector
instance.Parameters: basedir the base directory the scan is being done from filename is the name of the file to check file is a java.io.File object the selector can use
Returns: whether the file should be selected or not
Parameters: theexpression this must match a line in the file to be selected.
Parameters: parameters the complete set of parameters for this selector
Returns: a string describing this object