Sha256: 70494957f760286313fe694f842287680a849fbe56e3dc6ad0d8a92c98404243
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
require_relative '../../feature/java/merge_jar' require_relative '../../feature/java/merge_exec' module IronWorkerNG module Code module Runtime module Java include IronWorkerNG::Feature::Java::MergeJar::InstanceMethods include IronWorkerNG::Feature::Java::MergeExec::InstanceMethods def runtime_run_code classpath_array = [] @features.each do |f| if f.respond_to?(:code_for_classpath) classpath_array << f.send(:code_for_classpath) end end classpath = classpath_array.join(':') IronCore::Logger.info 'IronWorkerNG', "Collected '#{classpath}' classpath" <<RUN_CODE java -cp #{classpath} #{@exec.klass.nil? ? "-jar #{File.basename(@exec.path)}" : @exec.klass} "$@" RUN_CODE end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iron_worker_ng-0.8.4 | lib/iron_worker_ng/code/runtime/java.rb |