buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djspie...@apache.org
Subject svn commit: r917127 - /buildr/trunk/lib/buildr/core/cc.rb
Date Sun, 28 Feb 2010 04:37:34 GMT
Author: djspiewak
Date: Sun Feb 28 04:37:34 2010
New Revision: 917127

URL: http://svn.apache.org/viewvc?rev=917127&view=rev
Log:
Should recompile tests when main has changed

Modified:
    buildr/trunk/lib/buildr/core/cc.rb

Modified: buildr/trunk/lib/buildr/core/cc.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/cc.rb?rev=917127&r1=917126&r2=917127&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/cc.rb (original)
+++ buildr/trunk/lib/buildr/core/cc.rb Sun Feb 28 04:37:34 2010
@@ -95,13 +95,13 @@
           end
           
           project.task(:compile).reenable if in_main
-          project.task('test:compile').reenable if in_test
+          project.task('test:compile').reenable if in_test || in_main
           
           successful = true
           begin
             project.task(:resources).filter.run if in_res
             project.task(:compile).invoke if in_main
-            project.task('test:compile').invoke if in_test
+            project.task('test:compile').invoke if in_test || in_main
           rescue Exception => ex
             $stderr.puts $terminal.color(ex.message, :red)
             successful = false



Mime
View raw message