-
Notifications
You must be signed in to change notification settings - Fork 0
Zip Task
The ZipTask allows you to package local files into a .zip file, making it easier to move a large set of files to another location.
The zip task has a number of properties to find the files to zip and where to save the output.
- directories_to_zip – This accepts an array of directories which should be included in the zip. If you provide multiple directories, then they will keep the directory structure inside the zip. If only one directory is provided, then the files within that directory will appear in the root.
- additional_files – [Optional] While zipping complete directories solves one problem, there are times when you need to include other files such as release notes within the zip as well.
- output_file – this is the filename of the zip
- output_path – [Optional] Where you want the final zip to be saved to. In this example, it is the same directory as your build file. If no path provided, the first path provided for directories_to_zip property will be used.
- exclusions – [Optional] Exclude files matching one of the given exclusion pattern.
zip do |zip|
zip.directories_to_zip "lib", "spec"
zip.additional_files = "README.markdown"
zip.output_file = 'source.zip'
zip.output_path = File.dirname(__FILE__)
zip.exclusions /_PublishedWebsites/, /\.pdb$/
endAbove example can be found in Rakefile.rb
- Build-Server Integration
- Command Line Task Options
- Configuration
- Custom Tasks
- Logging Options
- Sample Usages
- Task Arguments and Rakefile Parameters
- YAML Configuration
- ASP.NET Compiler - ASP.Net website compiler
- Assembly Info Generator - generate assembly info dynamically
- CSC - C# compiler
- Exec - Execute arbitrary cmd
- Fluent Migrator - Run FluentMigrator on migration library
- ILMerge - Merge dll/exe-s together
- MSBuild and XBuild - Compile a .sln-file or a MsBuild xml-file
- MSpec - Test using MSpec (machine.specifications)
- MSTest - Test using Microsoft Test Framework
- NAnt - Run a NAnt script
- NChurn - Calculate per-file churn
- NCover Console - Run NCover for tests/library
- NCover Reports - Generate a report from a coverage run
- NDepend - Run NDepend to check static code metrics
- NuGet Install - Install NuGet packages
- NuGet Pack - Create NuGet packages
- NuGet Push - Push NuGet packages to official MS repo
- NuGet Publish - Publish NuGet packages
- NUnit - Test using NUnit
- NuSpec - Generate a NuSpec file
- Output - File copying and template expansion
- PLink - SSH into a remote computer and run a command
- SQLCmd - Run a SQL command as a part of your build process
- UnZip - Unzip a directory
- XBuild - Run XBuild (will be merged into MsBuild)
- XUnit - Test using XUnit
- Zip - Zip a directory or files
- Edit the Wiki Locally - How to edit the wiki without using Github's interface
- How to Build Albacore
- How to Contribute