Sha256: 77e1e7b5f9eaf44726a3a51486f307d963d393be97a2f71cef121abe1544f244
Contents?: true
Size: 1011 Bytes
Versions: 9
Compression:
Stored size: 1011 Bytes
Contents
module IronWorkerNG module Feature module Java module MergeJar class Feature < IronWorkerNG::Feature::Base attr_reader :path def initialize(code, path) super(code) @path = path end def hash_string Digest::MD5.hexdigest(@path + File.mtime(rebase(@path)).to_i.to_s) end def bundle(container) IronCore::Logger.debug 'IronWorkerNG', "Bundling java jar with path='#{@path}'" container_add(container, File.basename(@path), rebase(@path)) end def code_for_classpath File.basename(@path) end end module InstanceMethods def merge_jar(path) IronCore::Logger.info 'IronWorkerNG', "Merging java jar with path='#{path}'" @features << IronWorkerNG::Feature::Java::MergeJar::Feature.new(self, path) end alias :jar :merge_jar end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems