FileUtils.

CopyFile(string, string, Encoding, FilterSetCollection) Method

Summary

Copies a file while replacing the tokens identified by the given NAnt.Contrib.Types.FilterSetCollection.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Util
Containing Type
FileUtils

Syntax

public static void CopyFile(string sourceFileName, string destinationFileName, Encoding encoding, FilterSetCollection filtersets)

Parameters

Name Type Description
sourceFileName string The file to copy.
destinationFileName string The name of the destination file.
encoding Encoding The System.Text.Encoding used when filter-copying the file.
filtersets FilterSetCollection The collection of filtersets that should be applied to the file.

Return Value

Type Description
void