class Buildr::Run::JavaRunner

Public Instance Methods

run(task) click to toggle source
# File lib/buildr/core/run.rb, line 24
def run(task)
  fail "Missing :main option" unless task.options[:main]
  cp = project.compile.dependencies + [project.path_to(:target, :classes), project.path_to(:target, :resources)] + task.classpath
  Java::Commands.java(task.options[:main], {
    :properties => jrebel_props(project).merge(task.options[:properties] || {}),
    :classpath => cp,
    :java_args => jrebel_args + (task.options[:java_args] || [])
  })
end