FileHelperAliases.

ReplaceTextInFiles(ICakeContext, string, Encoding, string, string) Method

Summary

Replaces the text in files matched by the given globber pattern
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static FilePath[] ReplaceTextInFiles(this ICakeContext context, string globberPattern, Encoding encoding, string findText, string replaceText)

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.
findText string The text to find.
replaceText string The replacement text.

Return Value

Type Description
FilePath[] The files that had text replaced in them.