buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djspie...@apache.org
Subject svn commit: r776912 - /buildr/trunk/lib/buildr/java/cobertura.rb
Date Thu, 21 May 2009 01:18:48 GMT
Author: djspiewak
Date: Thu May 21 01:18:48 2009
New Revision: 776912

URL: http://svn.apache.org/viewvc?rev=776912&view=rev
Log:
Fixed issues with scoping

Modified:
    buildr/trunk/lib/buildr/java/cobertura.rb

Modified: buildr/trunk/lib/buildr/java/cobertura.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/cobertura.rb?rev=776912&r1=776911&r2=776912&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/cobertura.rb (original)
+++ buildr/trunk/lib/buildr/java/cobertura.rb Thu May 21 01:18:48 2009
@@ -204,7 +204,7 @@
             project.test.with Cobertura.dependencies
             project.test.options[:properties]["net.sourceforge.cobertura.datafile"] = cobertura.data_file
             
-            [:xml, :html, :check].each do |format|
+            [:xml, :html].each do |format|
               task format => ['instrument', 'test'] do 
                 info "Creating test coverage reports in #{cobertura.report_to(format)}"
                 Buildr.ant "cobertura" do |ant|
@@ -223,8 +223,8 @@
             desc "Run the cobertura check"
             task :check => [:instrument, :test] do
               Buildr.ant "cobertura" do |ant|
-                ant.taskdef :classpath=>requires.join(File::PATH_SEPARATOR), :resource=>"tasks.properties"
-                ant.send "cobertura-check", :datafile=>data_file, \
+                ant.taskdef :classpath=>Cobertura.requires.join(File::PATH_SEPARATOR),
:resource=>"tasks.properties"
+                ant.send "cobertura-check", :datafile=>Cobertura.data_file, \
                   :branchrate=>cobertura.check.branch_rate, \
                   :lineRate=>cobertura.check.line_rate, \
                   :totalBranchRate=>cobertura.check.total_branch_rate, \



Mime
View raw message