lib/buildr/java/commands.rb in vic-buildr-1.3.3 vs lib/buildr/java/commands.rb in vic-buildr-1.3.4

- old
+ new

@@ -81,10 +81,11 @@ else cmd_args << '-nocompile' << '-s' << options[:output].to_s 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 info 'Running apt' trace (['apt'] + cmd_args).join(' ')