You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2012/11/01 12:23:19 UTC

svn commit: r1404545 - /buildr/trunk/lib/buildr/core/application.rb

Author: donaldp
Date: Thu Nov  1 11:23:18 2012
New Revision: 1404545

URL: http://svn.apache.org/viewvc?rev=1404545&view=rev
Log:
Guard the modification of the Rake::DSL class so it only executed on windows

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

Modified: buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/application.rb?rev=1404545&r1=1404544&r2=1404545&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/application.rb (original)
+++ buildr/trunk/lib/buildr/core/application.rb Thu Nov  1 11:23:18 2012
@@ -698,6 +698,11 @@ module RakeFileUtils #:nodoc:
   end
 end
 
+
+# It is unclear why this needs to be included on windows but it does seem to be needed.
+# But it can not be included under linux as it rewrites the install command
+if Buildr::Util.win_os?
+
 module Rake::DSL #:nodoc:
   FileUtils::OPT_TABLE.each do |name, opts|
     default_options = []
@@ -715,3 +720,5 @@ module Rake::DSL #:nodoc:
     EOS
   end
 end
+
+end