class Buildr::ZipTask
The ZipTask creates a new Zip file. You can include any number of files and and directories, use exclusion patterns, and include files into specific directories.
For example:
zip('test.zip').tap do |task| task.include 'srcs' task.include 'README', 'LICENSE' end
See Buildr#zip and ArchiveTask.
Attributes
compression_level[RW]
Compression level for this Zip.
Public Instance Methods
entry(name) → Entry
click to toggle source
Returns a ZIP file entry. You can use this to check if the entry exists and its contents, for example:
package(:jar).entry("META-INF/LICENSE").should contain(/Apache Software License/)
# File lib/buildr/packaging/ziptask.rb, line 44 def entry(entry_name) ::Zip::Entry.new(name, entry_name) end