You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/10/01 16:20:41 UTC

svn commit: r700782 - /incubator/buildr/trunk/lib/buildr/java/commands.rb

Author: lacton
Date: Wed Oct  1 07:20:40 2008
New Revision: 700782

URL: http://svn.apache.org/viewvc?rev=700782&view=rev
Log:
Java#tools_jar does not accept a block anymore (revert)

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=700782&r1=700781&r2=700782&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/java/commands.rb (original)
+++ incubator/buildr/trunk/lib/buildr/java/commands.rb Wed Oct  1 07:20:40 2008
@@ -83,7 +83,8 @@
         end
         cmd_args << '-source' << options[:source] if options[:source]
         classpath = classpath_from(options)
-        Java.tools_jar { |tools| classpath << tools }
+        tools = Java.tools_jar
+        classpath << tools if tools
         cmd_args << '-classpath' << classpath.join(File::PATH_SEPARATOR) unless classpath.empty?
         cmd_args += files
         unless Buildr.application.options.dryrun