Summary
Zips the specified files.
- Namespace
- Cake
.Common .IO - Containing Type
- ZipAliases
Syntax
[CakeMethodAlias]
public static void Zip(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<FilePath> filePaths)
Examples
var files = GetFiles("./**/Cake.*.dll");
Zip("./", "CakeAssemblies.zip", files);
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
rootPath | DirectoryPath | The root path. |
outputPath | FilePath | The output path. |
filePaths | IEnumerable |
The file paths. |
Return Value
Type | Description |
---|---|
void |