You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2015/11/26 23:45:11 UTC

[jira] [Closed] (BUILDR-709) Exception in jacoco.rb [TypeError : can't convert Array into String]

     [ https://issues.apache.org/jira/browse/BUILDR-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald closed BUILDR-709.
-------------------------------
       Resolution: Fixed
         Assignee: Peter Donald
    Fix Version/s: 1.4.24

Thanks for the fix. It has been applied in 

https://github.com/apache/buildr/commit/4e24616239d8c455f51e1b2058c3e83060731511

I will endeavor to put together a release in the near future that includes the fix.

> Exception in jacoco.rb [TypeError : can't convert Array into String]
> --------------------------------------------------------------------
>
>                 Key: BUILDR-709
>                 URL: https://issues.apache.org/jira/browse/BUILDR-709
>             Project: Buildr
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.4.20
>         Environment: Windows 7, JRuby 1.7.16.1
>            Reporter: Ross Mahony
>            Assignee: Peter Donald
>             Fix For: 1.4.24
>
>
> Getting the following error in the jacoco.rb file 
> ** Invoke E:/MAVEN/repository/org/jacoco/org.jacoco.agent/0.5.10.201208310627/org.jacoco.agent-0.5.10.201208310627-runtime.jar (first_time, not_needed)
> Buildr aborted!
> TypeError : can't convert Array into String
> org/jruby/RubyString.java:1159:in `+'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/addon/buildr/jacoco.rb:151:in `ProjectExtension'
> org/jruby/RubyProc.java:271:in `call'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
> org/jruby/RubyArray.java:1613:in `each'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:662:in `invoke_with_call_chain'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:660:in `invoke_with_call_chain'
> E:/jruby-1.7.16.1/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
> E:/jruby-1.7.16.1/lib/ruby/1.9/monitor.rb:210:in `mon_synchronize'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:648:in `invoke_with_call_chain'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:643:in `invoke'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/test.rb:262:in `execute'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:662:in `invoke_with_call_chain'
> E:/jruby-1.7.16.1/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:648:in `invoke_with_call_chain'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/application.rb:643:in `invoke'
> E:/jruby-1.7.16.1/lib/ruby/gems/shared/gems/buildr-1.4.20-java/lib/buildr/core/test.rb:158:in `run_local_tests'
> org/jruby/RubyArray.java:1613:in `each'
> Was able to fix it by updating line 151:
> project.test.options[:java_args] = (project.test.options[:java_args] || []) + [agent_config]
> to:
> project.test.options[:java_args] = ([project.test.options[:java_args]] || []) + [agent_config]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)