buildr-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=917122&view=rev
Log:
When initial compile fails, still monitor

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=917122&r1=917121&r2=917122&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/cc.rb (original)
+++ buildr/trunk/lib/buildr/core/cc.rb Sun Feb 28 04:37:04 2010
@@ -52,7 +52,10 @@
     end
     
     before_define do |project|
-      project.task :cc => [:compile, 'test:compile'] do
+      project.task :cc do
+        # we don't want to actually fail if our dependencies don't succede
+        [:compile, 'test:compile'].each { |name| project.task(name).invoke }
+        
         main_dirs = project.compile.sources.map(&:to_s)
         test_dirs = project.task('test:compile').sources.map(&:to_s)
         res_dirs = project.resources.sources.map(&:to_s)



Mime
View raw message