buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Hennebrueder <>
Subject Bug in Java::Command
Date Fri, 05 Feb 2010 19:21:59 GMT
On Mac OS I cannot execute something like'-jar', "yuicompressor-2.4.2.jar", "--line-break 
1000 --type css src/main/webapp/styles/styles-all.css",

The reason is that the parameters are not joined with a ' '
In java/commands.rb
the method       def java(*args, &block) needed the line below. Most 
likely this may break thinks on Windows. The orgininal developer will 
probably know how to fix it correctly.

        unless Buildr.application.options.dryrun
          info "Running #{name}"
          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 =' ') if Util.win_os?
# neeeded the next line on MAC OS
          cmd_args = cmd_args.join(' ')
# end of mac changes
          sh(*cmd_args) do |ok, ps|
   ok, ps

Best Regards / Viele Grüße

Sebastian Hennebrueder
Software Developer and Trainer for Hibernate / Java Persistence

View raw message