if (regularExpression == null) {
throw new BuildException("Missing pattern in matches.");
}
int options = RegexpUtil.asOptions(caseSensitive, multiLine, singleLine);
Regexp regexp = regularExpression.getRegexp(getProject());
return regexp.matches(string, options);
}
}