You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by dj...@apache.org on 2010/02/28 05:37:34 UTC

svn commit: r917127 - /buildr/trunk/lib/buildr/core/cc.rb

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