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 2009/07/14 20:08:38 UTC
svn commit: r793998 - /buildr/trunk/lib/buildr/core/util.rb
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