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

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

Ross Mahony created BUILDR-709:
----------------------------------

             Summary: 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


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)