CreateZip
class CreateZip : Task
CreateZip is used to create a zip file from a directory on the file system.
This function is called on each file under inDir
Required directories to zip up
Required output zip file to create
Specifies the top level directory inside the zip file prefixed to all the files
|File,Str->Bool| : filter
This function is called on each file under inDir; if true returned it is included in the zip, if false then it is excluded. Returning false for a directory will skip recursing the entire directory.
File[]? : inDirs
Required directories to zip up. The contents of these dirs are recursively zipped up with zip paths relative to this root directory.
new make(BuildScript script)
File? : outFile
Required output zip file to create
Uri? : pathPrefix
Specifies the top level directory inside the zip file prefixed to all the files. For example use acme/ to put everything inside the zip file inside a "acme" directory. The URI used must end with a slash. If null, then no path prefix is used.
virtual Void run()