throw new BuildException("Missing regular expression");
}
Pattern pattern = Pattern.compile(getText());
Iterator iter = getOutputIterator();
while (iter.hasNext()) {
LogLine line = (LogLine)iter.next();
if (pattern.matcher(line.getText(filterANSI())).find()) {
log(logPrefix() + "matches pattern \"" + getText() + "\"", Project.MSG_VERBOSE);
return true;
}
}
log(logPrefix() + "does not match pattern \"" + getText() + "\"", Project.MSG_VERBOSE);