This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Compression.
Summary
Create a BZip2 Tar archive of the specified files.
Syntax
public static void BZip2Compress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<string> filePaths, int level)
Examples
var files = new [] {
"./src/Cake/bin/Debug/Autofac.dll",
"./src/Cake/bin/Debug/Cake.Common.dll",
"./src/Cake/bin/Debug/Cake.Core.dll",
"./src/Cake/bin/Debug/Cake.exe"
};
BZip2Compress("./", "cakebinaries.tar.bz2", files, 6);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
rootPath |
DirectoryPath |
The root path. |
outputPath |
FilePath |
The output path. |
filePaths |
IEnumerable<string> |
The file paths. |
level |
int |
The compression level (1-9). |
Return Value