BUILDR-709 - Fix "Exception in jacoco.rb [TypeError : can't convert Array into String...
authorPeter Donald <peter@realityforge.org>
Thu, 26 Nov 2015 22:18:02 +0000 (09:18 +1100)
committerPeter Donald <peter@realityforge.org>
Thu, 26 Nov 2015 22:18:02 +0000 (09:18 +1100)
CHANGELOG
addon/buildr/jacoco.rb

index d1545de..c64baa7 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 1.4.24 (Pending)
+* Fixed:  BUILDR-709 - Fix "Exception in jacoco.rb [TypeError : can't convert Array into
+          String]". Submitted By Ross Mahony.
 * Added:  Define the 'activate_jruby_facet' addon that activates the jruby facet in
           generated IDEA project modules.
 * Change: Update the Intellij IDEA plugin to support marking directories as generated.
index e02acec..fbb0b0a 100644 (file)
@@ -138,7 +138,7 @@ module Buildr
             options << "excludes=#{project.jacoco.excludes.join(':')}" unless project.jacoco.excludes.empty?
 
             agent_config = "-javaagent:#{agent_jar}=#{options.join(',')}"
-            project.test.options[:java_args] = (project.test.options[:java_args] || []) + [agent_config]
+            project.test.options[:java_args] = ([project.test.options[:java_args]] || []) + [agent_config]
           end
           namespace 'jacoco' do
             if project.jacoco.generate_xml?