CompressionAliases.

BZip2Compress(ICakeContext, DirectoryPath, FilePath, IEnumerable<FilePath>) Method

Summary

Create a BZip2 Tar archive of the specified files.
Assembly
Cake.Compression.dll
Namespace
Cake.Compression
Containing Type
CompressionAliases

Syntax

public static void BZip2Compress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<FilePath> filePaths)

Examples

var files = GetFiles("./**/Cake.*.dll");
BZip2Compress("./", "cakeassemblies.tar.bz2", files);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
rootPath DirectoryPath The root path.
outputPath FilePath The output path.
filePaths IEnumerable<FilePath> The file paths.

Return Value

Type Description
void