Class: Buildr::Java::Packaging::JarTask

Inherits:
ZipTask
  • Object
show all
Defined in:
lib/java/packaging.rb

Direct Known Subclasses

WarTask

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ZipTask

#invoke_prerequisites, #needed?, #path, #with

Methods included from ZipTask::IncludeFiles

#exclude, #include, #merge

Constructor Details

#initialize(*args) ⇒ JarTask

Returns a new instance of JarTask.



11
12
13
14
# File 'lib/java/packaging.rb', line 11

def initialize(*args)
  super
  @manifest = true
end

Instance Attribute Details

#manifestObject

Returns the value of attribute manifest.



9
10
11
# File 'lib/java/packaging.rb', line 9

def manifest
  @manifest
end

Instance Method Details

#[]=(key, value) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/java/packaging.rb', line 16

def []=(key, value)
  if key.to_sym == :manifest
    self.manifest = value
  else
    super key, value
  end
  value
end