JavaRunner should include target/resources in classpath
-------------------------------------------------------

                 Key: BUILDR-629
                 URL: https://issues.apache.org/jira/browse/BUILDR-629
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.4.6, 1.4.7
            Reporter: Russell Teabeault


JavaRunner includes the compile dependencies and the target/classes directory.  
It should also include the target/resources directory.      

buildr/core/run.rb

...
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


cp = project.compile.dependencies + [project.path_to(:target, :classes)] + 
task.classpath

should be 

cp = project.compile.dependencies + [project.path_to(:target, :classes), 
project.path_to(:target, :resources)] + task.classpath



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to