Author: vborja
Date: Tue May 13 20:50:49 2008
New Revision: 656097

URL: http://svn.apache.org/viewvc?rev=656097&view=rev
Log:
Use single string command for the java command on WindowsOS.

Modified:
    incubator/buildr/trunk/lib/buildr/java/commands.rb

Modified: incubator/buildr/trunk/lib/buildr/java/commands.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/java/commands.rb?rev=656097&r1=656096&r2=656097&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/java/commands.rb (original)
+++ incubator/buildr/trunk/lib/buildr/java/commands.rb Tue May 13 20:50:49 2008
@@ -50,6 +50,7 @@
           puts "Running #{name}" if verbose
           block = lambda { |ok, res| fail "Failed to execute #{name}, see 
errors above" unless ok } unless block
           puts cmd_args.join(' ') if Buildr.application.options.trace
+          cmd_args = cmd_args.map(&:inspect).join(' ') if Util.win_os?
           system(*cmd_args).tap do |ok|
             block.call ok, $?
           end


Reply via email to