buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djspie...@apache.org
Subject svn commit: r793998 - /buildr/trunk/lib/buildr/core/util.rb
Date Tue, 14 Jul 2009 18:08:38 GMT
Author: djspiewak
Date: Tue Jul 14 18:08:38 2009
New Revision: 793998

URL: http://svn.apache.org/viewvc?rev=793998&view=rev
Log:
Monkey-patched RakeFileUtils on Java platform to change :default verbose to false

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

Modified: buildr/trunk/lib/buildr/core/util.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/util.rb?rev=793998&r1=793997&r2=793998&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/util.rb (original)
+++ buildr/trunk/lib/buildr/core/util.rb Tue Jul 14 18:08:38 2009
@@ -312,6 +312,20 @@
 if Buildr::Util.java_platform?
   require 'ffi'
   
+  module RakeFileUtils
+    def rake_merge_option(args, defaults)
+      defaults[:verbose] = false if defaults[:verbose] == :default
+      
+      if Hash === args.last
+        defaults.update(args.last)
+        args.pop
+      end
+      args.push defaults
+      args
+    end
+    private :rake_merge_option
+  end
+  
   module Buildr
     class ProcessStatus
       attr_reader :pid, :termsig, :stopsig, :exitstatus



Mime
View raw message