CompressionAliases.

ZipCompress(ICakeContext, DirectoryPath, FilePath, string, int) Method

Summary

Create a Zip archive of the files matching the specified pattern.
Assembly
Cake.Compression.dll
Namespace
Cake.Compression
Containing Type
CompressionAliases

Syntax

public static void ZipCompress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, string pattern, int level)

Examples

ZipCompress("./", "xmlfiles.zip", "./*.xml", 6);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
rootPath DirectoryPath The root path.
outputPath FilePath The output path.
pattern string The pattern.
level int The compression level (1-9).

Return Value

Type Description
void