require_relative '../feature/java/merge_jar' require_relative '../feature/java/merge_worker' module IronWorkerNG module Code class Java < IronWorkerNG::Code::Base include IronWorkerNG::Feature::Java::MergeJar::InstanceMethods include IronWorkerNG::Feature::Java::MergeWorker::InstanceMethods def create_runner(zip, init_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(':') zip.get_output_stream('runner.rb') do |runner| runner.write < 'java', :klass => IronWorkerNG::Code::Java)