Class: Sparrowhawk::JarEntry

Inherits:
FileEntry show all
Defined in:
lib/sparrowhawk/jar_entry.rb

Direct Known Subclasses

JRubyCoreJarEntry, JRubyRackJarEntry, JRubyStdLibJarEntry

Instance Attribute Summary

Attributes inherited from FileEntry

#name, #source

Instance Method Summary (collapse)

Methods inherited from FileEntry

#content

Constructor Details

- (JarEntry) initialize

A new instance of JarEntry



5
6
7
# File 'lib/sparrowhawk/jar_entry.rb', line 5

def initialize
  super jar_entry_name, jar_path
end

Instance Method Details

- (Object) jar_entry_name



9
10
11
# File 'lib/sparrowhawk/jar_entry.rb', line 9

def jar_entry_name
  "WEB-INF/lib/#{File.basename(jar_path)}"
end

- (Object) jar_path

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/sparrowhawk/jar_entry.rb', line 13

def jar_path
  raise NotImplementedError, "#jar_path should be implemented by a subclass"
end