<grep>

[This is preliminary documentation and subject to change.]

Searches files for a regular-expression and produces an XML report of the matches.

Parameters

Attribute Type Description Required
output file Specifies the name of the output file. True
pattern string Specifies the regular-expression to search for. True
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<fileset>

The set of files in which the expression is searched.

</fileset>

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.86.3156.0)