type
CreateZip
class CreateZip : Task
CreateZip is used to create a zip file from a directory on the file system.
constructors
fields
filter |
This function is called on each file under |
---|---|
inDirs |
Required directories to zip up. |
outFile |
Required output zip file to create |
pathPrefix |
Specifies the top level directory inside the zip file prefixed to all the files. |
methods
Slot Details
filter
inDirs
File[]? inDirs
Required directories to zip up. The contents of these dirs are recursively zipped up with zip paths relative to this root directory.
make
new make(BuildScript script)
outFile
File? outFile
Required output zip file to create
pathPrefix
Uri? pathPrefix := null
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.
run
virtual override Void run()