erichummel-sunspot 1.2.1b → 1.2.1f

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Sunspot
16
16
 
17
17
  LOG_LEVELS = Set['SEVERE', 'WARNING', 'INFO', 'CONFIG', 'FINE', 'FINER', 'FINEST']
18
18
 
19
- attr_accessor :min_memory, :max_memory, :port, :solr_data_dir, :solr_home, :log_file
19
+ attr_accessor :min_memory, :max_memory, :port, :solr_data_dir, :solr_home, :log_file, :multicore
20
20
  attr_writer :pid_dir, :pid_file, :log_level, :solr_data_dir, :solr_home, :solr_jar
21
21
 
22
22
  #
@@ -66,12 +66,11 @@ module Sunspot
66
66
  command << "-Xms#{min_memory}" if min_memory
67
67
  command << "-Xmx#{max_memory}" if max_memory
68
68
  command << "-Djetty.port=#{port}" if port
69
- command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir
69
+ command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir && !multicore
70
70
  command << "-Dsolr.solr.home=#{solr_home}" if solr_home
71
71
  command << "-Djava.util.logging.config.file=#{logging_config_path}" if logging_config_path
72
72
  command << '-jar' << File.basename(solr_jar)
73
73
  FileUtils.cd(File.dirname(solr_jar)) do
74
- puts Escape.shell_command(command)
75
74
  exec(Escape.shell_command(command))
76
75
  end
77
76
  end
@@ -1,3 +1,3 @@
1
1
  module Sunspot
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.1f'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: erichummel-sunspot
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 5
5
- version: 1.2.1b
5
+ version: 1.2.1f
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mat Brown