If you look at the source code for the JavaRunner

def run(task)
  fail "Missing :main option" unless task.options[:main]
  cp = project.compile.dependencies + [project.path_to(:target, :classes)]
+ 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

You see that it automatically adds the projects compile dependencies and
the target/classes directory to the classpath.  Should it also not add
target/resources to classpath?

Thanks,

Russell Teabeault

Reply via email to