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('').tap do |task|
  task.include 'srcs'
  task.include 'README', 'LICENSE'

See Buildr#zip and ArchiveTask.



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), entry_name)