FileHelperAliases.

FindTextInFiles(ICakeContext, string, Encoding, string) Method

Summary

Finds files with the given text in files matching the given globber pattern.
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static FilePath[] FindTextInFiles(this ICakeContext context, string globberPattern, Encoding encoding, string findPattern)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
globberPattern string The globber pattern to match files to replace text in.
encoding Encoding The encoding to use for the file.
findPattern string The regular expression to find.

Return Value

Type Description
FilePath[] The files which match the regular expression and globber pattern.