Class Buildr::ZipTask
In: lib/buildr/java/packaging.rb  (CVS)
lib/buildr/packaging/ziptask.rb  (CVS)
Parent: Object

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.

Methods

entry  

Included Modules

WithManifest

Attributes

compression_level  [RW]  Compression leve for this Zip.

Public Instance methods

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/)

[Validate]