lib/sunspot/solr/server.rb in sunspot_solr-1.3.1 vs lib/sunspot/solr/server.rb in sunspot_solr-1.3.2
- old
+ new
@@ -1,6 +1,6 @@
-require 'escape'
+require 'shellwords'
require 'set'
require 'tempfile'
require 'sunspot/solr/java'
require 'sunspot/solr/installer'
@@ -99,10 +99,10 @@
command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir
command << "-Dsolr.solr.home=#{solr_home}" if solr_home
command << "-Djava.util.logging.config.file=#{logging_config_path}" if logging_config_path
command << '-jar' << File.basename(solr_jar)
FileUtils.cd(File.dirname(solr_jar)) do
- exec(Escape.shell_command(command))
+ exec(Shellwords.shelljoin(command))
end
end
#
# Stop the sunspot-solr server.