lib/buildmaster/ant_driver.rb in BuildMaster-0.9.0 vs lib/buildmaster/ant_driver.rb in BuildMaster-0.9.1
- old
+ new
@@ -52,10 +52,10 @@
if (@classpath and @classpath.length() > 0)
local_path = "#{local_path}#{@class_path_delimiter}#{@classpath}"
end
all_arguments = Array.new()
all_arguments.push(@ant_options)
- all_arguments.push('-classpath', local_path)
+ all_arguments.push('-classpath', "\"#{local_path}\"")
all_arguments.push("-Dant.home=#{@ant_home.path}")
all_arguments.push('org.apache.tools.ant.launch.Launcher', @ant_arguments);
all_arguments.push('-f', @ant_file.path) if @ant_file
all_arguments.push(arguments)
command_line = "#{@java_command} #{all_arguments.join(' ')}"
\ No newline at end of file