You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Antoine Toulme (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/11 18:54:57 UTC
[jira] [Resolved] (BUILDR-629) JavaRunner should include
target/resources in classpath
[ https://issues.apache.org/jira/browse/BUILDR-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Toulme resolved BUILDR-629.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4.8
Assignee: Antoine Toulme
Fixed with revision 1299410.
> 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
> Assignee: Antoine Toulme
> Fix For: 1.4.8
>
>
> 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