You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2010/07/20 18:57:29 UTC

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

Author: boisvert
Date: Tue Jul 20 16:57:29 2010
New Revision: 965908

URL: http://svn.apache.org/viewvc?rev=965908&view=rev
Log:
BUILDR-482 Javadoc: cannot load class java.com.sun.tools.javadoc.Main

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

Modified: buildr/trunk/lib/buildr/java/commands.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/commands.rb?rev=965908&r1=965907&r2=965908&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/commands.rb (original)
+++ buildr/trunk/lib/buildr/java/commands.rb Tue Jul 20 16:57:29 2010
@@ -52,6 +52,8 @@ module Java
 
         cmd_args = [path_to_bin('java')]
         classpath = classpath_from(options)
+        tools = Java.tools_jar
+        classpath << tools if tools
         cmd_args << '-classpath' << classpath.join(File::PATH_SEPARATOR) unless classpath.empty?
         options[:properties].each { |k, v| cmd_args << "-D#{k}=#{v}" } if options[:properties]
         cmd_args += (options[:java_args] || (ENV['JAVA_OPTS'] || ENV['JAVA_OPTIONS']).to_s.split).flatten