Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4.20
-
None
-
Windows 7, JRuby 1.7.16.1
Description
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'
- 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)
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]