gems/gems/warbler-1.4.9/lib/warbler/jar.rb
# Add a manifest file either from config or by making a default manifest.
Add a manifest file either from config or by making a default manifest.
Add a manifest file either from config or by making a default manifest .
def add_manifest(config = nil)
      unless @files.keys.detect{|k| k =~ /^META-INF\/MANIFEST\.MF$/i}
        if config && config.manifest_file
          @files['META-INF/MANIFEST.MF'] = config.manifest_file
        else
          @files['META-INF/MANIFEST.MF'] = StringIO.new(DEFAULT_MANIFEST)
        end
      end
    end
def add_manifest ( config = nil ) unless @files . keys . detect { | k | k =~ / ^META-INF \/ MANIFEST \. MF$ /i } if config && config . manifest_file @files [ 'META-INF/MANIFEST.MF' ] = config . manifest_file else @files [ 'META-INF/MANIFEST.MF' ] = StringIO . new ( DEFAULT_MANIFEST ) end end end
Add a manifest file either from config or by making a default manifest.
Add a manifest file either from config or by making a default manifest .
config