flare 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/flare.gemspec +2 -27
- data/lib/flare/tasks.rb +0 -45
- metadata +5 -28
- data/bin/flare-solr +0 -83
- data/solr/etc/jetty.xml +0 -212
- data/solr/etc/webdefault.xml +0 -379
- data/solr/lib/jetty-6.1.3.jar +0 -0
- data/solr/lib/jetty-util-6.1.3.jar +0 -0
- data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
- data/solr/solr/conf/elevate.xml +0 -36
- data/solr/solr/conf/protwords.txt +0 -21
- data/solr/solr/conf/schema.xml +0 -64
- data/solr/solr/conf/solrconfig.xml +0 -726
- data/solr/solr/conf/stopwords.txt +0 -57
- data/solr/solr/conf/synonyms.txt +0 -31
- data/solr/solr/lib/geoapi-nogenerics-2.1-M2.jar +0 -0
- data/solr/solr/lib/gt2-referencing-2.3.1.jar +0 -0
- data/solr/solr/lib/jsr108-0.01.jar +0 -0
- data/solr/solr/lib/locallucene.jar +0 -0
- data/solr/solr/lib/localsolr.jar +0 -0
- data/solr/start.jar +0 -0
- data/solr/webapps/solr.war +0 -0
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
1.0.0
|
data/flare.gemspec
CHANGED
@@ -5,15 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flare}
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "1.0.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Dwan"]
|
12
|
-
s.date = %q{2009-
|
13
|
-
s.default_executable = %q{flare-solr}
|
12
|
+
s.date = %q{2009-12-29}
|
14
13
|
s.description = %q{This needs to get updated}
|
15
14
|
s.email = %q{mpdwan@gmail.com}
|
16
|
-
s.executables = ["flare-solr"]
|
17
15
|
s.extra_rdoc_files = [
|
18
16
|
"LICENSE",
|
19
17
|
"README.rdoc"
|
@@ -25,7 +23,6 @@ Gem::Specification.new do |s|
|
|
25
23
|
"README.rdoc",
|
26
24
|
"Rakefile",
|
27
25
|
"VERSION",
|
28
|
-
"bin/flare-solr",
|
29
26
|
"flare.gemspec",
|
30
27
|
"lib/flare.rb",
|
31
28
|
"lib/flare/active_record.rb",
|
@@ -34,28 +31,6 @@ Gem::Specification.new do |s|
|
|
34
31
|
"lib/flare/index_builder.rb",
|
35
32
|
"lib/flare/session.rb",
|
36
33
|
"lib/flare/tasks.rb",
|
37
|
-
"solr/etc/jetty.xml",
|
38
|
-
"solr/etc/webdefault.xml",
|
39
|
-
"solr/lib/jetty-6.1.3.jar",
|
40
|
-
"solr/lib/jetty-util-6.1.3.jar",
|
41
|
-
"solr/lib/jsp-2.1/ant-1.6.5.jar",
|
42
|
-
"solr/lib/jsp-2.1/core-3.1.1.jar",
|
43
|
-
"solr/lib/jsp-2.1/jsp-2.1.jar",
|
44
|
-
"solr/lib/jsp-2.1/jsp-api-2.1.jar",
|
45
|
-
"solr/lib/servlet-api-2.5-6.1.3.jar",
|
46
|
-
"solr/solr/conf/elevate.xml",
|
47
|
-
"solr/solr/conf/protwords.txt",
|
48
|
-
"solr/solr/conf/schema.xml",
|
49
|
-
"solr/solr/conf/solrconfig.xml",
|
50
|
-
"solr/solr/conf/stopwords.txt",
|
51
|
-
"solr/solr/conf/synonyms.txt",
|
52
|
-
"solr/solr/lib/geoapi-nogenerics-2.1-M2.jar",
|
53
|
-
"solr/solr/lib/gt2-referencing-2.3.1.jar",
|
54
|
-
"solr/solr/lib/jsr108-0.01.jar",
|
55
|
-
"solr/solr/lib/locallucene.jar",
|
56
|
-
"solr/solr/lib/localsolr.jar",
|
57
|
-
"solr/start.jar",
|
58
|
-
"solr/webapps/solr.war",
|
59
34
|
"test/helper.rb",
|
60
35
|
"test/test_flare.rb"
|
61
36
|
]
|
data/lib/flare/tasks.rb
CHANGED
@@ -1,51 +1,6 @@
|
|
1
1
|
require 'escape'
|
2
2
|
|
3
3
|
namespace :flare do
|
4
|
-
namespace :solr do
|
5
|
-
desc 'Start the Solr instance'
|
6
|
-
task :start => :environment do
|
7
|
-
solr_home = Flare::Configuration.server.solr_home
|
8
|
-
data_dir = Flare::Configuration.server.data_dir
|
9
|
-
pid_dir = Flare::Configuration.server.pid_dir
|
10
|
-
port = Flare::Configuration.server.port
|
11
|
-
log_file = File.join(Flare::Configuration.server.log_dir, 'solr.log')
|
12
|
-
log_level = Flare::Configuration.server.log_level
|
13
|
-
script_file = File.dirname(__FILE__) + '/../../bin/flare-solr'
|
14
|
-
|
15
|
-
[data_dir, pid_dir].each { |path| FileUtils.mkdir_p(path) }
|
16
|
-
|
17
|
-
command = [script_file, 'start', '-p', port.to_s, '-d', data_dir, '--pid-dir', pid_dir, '-l', log_level, '--log-file', log_file]
|
18
|
-
if solr_home
|
19
|
-
command << '-s' << solr_home
|
20
|
-
end
|
21
|
-
system(Escape.shell_command(command))
|
22
|
-
end
|
23
|
-
|
24
|
-
desc 'Run the Solr instance in the foreground'
|
25
|
-
task :run => :environment do
|
26
|
-
data_path = Flare::Configuration.server.data_dir
|
27
|
-
solr_home = Flare::Configuration.server.solr_home
|
28
|
-
port = Flare::Configuration.server.port
|
29
|
-
script_file = File.dirname(__FILE__) + '/../../bin/flare-solr'
|
30
|
-
|
31
|
-
FileUtils.mkdir_p(data_path)
|
32
|
-
command = [script_file, 'run', '-p', port.to_s, '-d', data_path]
|
33
|
-
if solr_home
|
34
|
-
command << '-s' << solr_home
|
35
|
-
end
|
36
|
-
exec(Escape.shell_command(command))
|
37
|
-
end
|
38
|
-
|
39
|
-
desc 'Stop the Solr instance'
|
40
|
-
task :stop => :environment do
|
41
|
-
script_file = File.dirname(__FILE__) + '/../../bin/flare-solr'
|
42
|
-
|
43
|
-
FileUtils.cd(Flare::Configuration.server.pid_dir) do
|
44
|
-
system(Escape.shell_command([script_file, 'stop']))
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
4
|
desc 'Rebuild the Solr index for all searchable models'
|
50
5
|
task :rebuild_index => :environment do
|
51
6
|
Flare.indexed_models.each do |model|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dwan
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
13
|
-
default_executable:
|
12
|
+
date: 2009-12-29 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -44,8 +44,8 @@ dependencies:
|
|
44
44
|
version:
|
45
45
|
description: This needs to get updated
|
46
46
|
email: mpdwan@gmail.com
|
47
|
-
executables:
|
48
|
-
|
47
|
+
executables: []
|
48
|
+
|
49
49
|
extensions: []
|
50
50
|
|
51
51
|
extra_rdoc_files:
|
@@ -58,7 +58,6 @@ files:
|
|
58
58
|
- README.rdoc
|
59
59
|
- Rakefile
|
60
60
|
- VERSION
|
61
|
-
- bin/flare-solr
|
62
61
|
- flare.gemspec
|
63
62
|
- lib/flare.rb
|
64
63
|
- lib/flare/active_record.rb
|
@@ -67,28 +66,6 @@ files:
|
|
67
66
|
- lib/flare/index_builder.rb
|
68
67
|
- lib/flare/session.rb
|
69
68
|
- lib/flare/tasks.rb
|
70
|
-
- solr/etc/jetty.xml
|
71
|
-
- solr/etc/webdefault.xml
|
72
|
-
- solr/lib/jetty-6.1.3.jar
|
73
|
-
- solr/lib/jetty-util-6.1.3.jar
|
74
|
-
- solr/lib/jsp-2.1/ant-1.6.5.jar
|
75
|
-
- solr/lib/jsp-2.1/core-3.1.1.jar
|
76
|
-
- solr/lib/jsp-2.1/jsp-2.1.jar
|
77
|
-
- solr/lib/jsp-2.1/jsp-api-2.1.jar
|
78
|
-
- solr/lib/servlet-api-2.5-6.1.3.jar
|
79
|
-
- solr/solr/conf/elevate.xml
|
80
|
-
- solr/solr/conf/protwords.txt
|
81
|
-
- solr/solr/conf/schema.xml
|
82
|
-
- solr/solr/conf/solrconfig.xml
|
83
|
-
- solr/solr/conf/stopwords.txt
|
84
|
-
- solr/solr/conf/synonyms.txt
|
85
|
-
- solr/solr/lib/geoapi-nogenerics-2.1-M2.jar
|
86
|
-
- solr/solr/lib/gt2-referencing-2.3.1.jar
|
87
|
-
- solr/solr/lib/jsr108-0.01.jar
|
88
|
-
- solr/solr/lib/locallucene.jar
|
89
|
-
- solr/solr/lib/localsolr.jar
|
90
|
-
- solr/start.jar
|
91
|
-
- solr/webapps/solr.war
|
92
69
|
- test/helper.rb
|
93
70
|
- test/test_flare.rb
|
94
71
|
has_rdoc: true
|
data/bin/flare-solr
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
using_gems = false
|
3
|
-
begin
|
4
|
-
require 'fileutils'
|
5
|
-
require 'tempfile'
|
6
|
-
require 'tmpdir'
|
7
|
-
require 'optparse'
|
8
|
-
require 'daemons'
|
9
|
-
rescue LoadError => e
|
10
|
-
if using_gems
|
11
|
-
raise(e)
|
12
|
-
else
|
13
|
-
using_gems = true
|
14
|
-
require 'rubygems'
|
15
|
-
retry
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
working_directory = FileUtils.pwd
|
20
|
-
solr_install = File.expand_path(File.join(File.dirname(__FILE__), '..', 'solr'))
|
21
|
-
|
22
|
-
port = '8983'
|
23
|
-
data_dir = File.expand_path(File.join(Dir.tmpdir, 'solr_data'))
|
24
|
-
solr_home = File.join(solr_install, 'solr')
|
25
|
-
pid_dir = working_directory
|
26
|
-
log_file = nil
|
27
|
-
log_level = 'OFF'
|
28
|
-
|
29
|
-
OptionParser.new do |opts|
|
30
|
-
opts.banner = "Usage: flare-solr start [options]"
|
31
|
-
|
32
|
-
opts.on '-p', '--port=PORT', 'Port on which to run Solr (default 8983)' do |p|
|
33
|
-
port = p
|
34
|
-
end
|
35
|
-
|
36
|
-
opts.on '-d', '--data-directory=DIRECTORY', 'Solr data directory' do |d|
|
37
|
-
data_dir = File.expand_path(d)
|
38
|
-
end
|
39
|
-
|
40
|
-
opts.on '-s', '--solr-home=HOME', 'Solr home directory (should contain conf/ directory)' do |s|
|
41
|
-
solr_home = File.expand_path(s)
|
42
|
-
end
|
43
|
-
|
44
|
-
opts.on '--pid-dir=PID_DIR', 'Directory for pid files' do |pd|
|
45
|
-
pid_dir = File.expand_path(pd)
|
46
|
-
end
|
47
|
-
|
48
|
-
opts.on '-l', '--log-level=LOG_LEVEL', 'Solr logging level' do |l|
|
49
|
-
log_level = l
|
50
|
-
end
|
51
|
-
|
52
|
-
opts.on '--log-file=LOG_FILE', 'Path to Solr log file' do |lf|
|
53
|
-
log_file = File.expand_path(lf)
|
54
|
-
end
|
55
|
-
end.parse!
|
56
|
-
|
57
|
-
options = { :dir_mode => :normal, :dir => pid_dir }
|
58
|
-
|
59
|
-
def logging_properties( log_file, log_level )
|
60
|
-
temp_file = Tempfile.new 'logging.properties'
|
61
|
-
temp_file << <<PROPERTIES
|
62
|
-
.level = #{log_level}
|
63
|
-
handlers = java.util.logging.FileHandler
|
64
|
-
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
|
65
|
-
java.util.logging.FileHandler.pattern = #{log_file}
|
66
|
-
PROPERTIES
|
67
|
-
temp_file.flush
|
68
|
-
temp_file.close
|
69
|
-
temp_file.path
|
70
|
-
end
|
71
|
-
|
72
|
-
Daemons.run_proc('flare-solr', options) do
|
73
|
-
FileUtils.cd(solr_install) do
|
74
|
-
args = ['java']
|
75
|
-
args << "-Djetty.port=#{port}" if port
|
76
|
-
args << "-Dsolr.data.dir=#{data_dir}" if data_dir
|
77
|
-
args << "-Dsolr.solr.home=#{solr_home}" if solr_home
|
78
|
-
args << "-Djava.util.logging.config.file=#{logging_properties(log_file, log_level)}" if log_file and log_level != 'OFF'
|
79
|
-
args << '-jar' << File.join(solr_install, 'start.jar')
|
80
|
-
STDERR.puts(args * ' ')
|
81
|
-
Kernel.exec(*args)
|
82
|
-
end
|
83
|
-
end
|
data/solr/etc/jetty.xml
DELETED
@@ -1,212 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
|
3
|
-
|
4
|
-
<!-- =============================================================== -->
|
5
|
-
<!-- Configure the Jetty Server -->
|
6
|
-
<!-- -->
|
7
|
-
<!-- Documentation of this file format can be found at: -->
|
8
|
-
<!-- http://docs.codehaus.org/display/JETTY/jetty.xml -->
|
9
|
-
<!-- -->
|
10
|
-
<!-- =============================================================== -->
|
11
|
-
|
12
|
-
|
13
|
-
<Configure id="Server" class="org.mortbay.jetty.Server">
|
14
|
-
|
15
|
-
<!-- Increase the maximum POST size to 1 MB to be able to handle large shard requests -->
|
16
|
-
<Call class="java.lang.System" name="setProperty">
|
17
|
-
<Arg>org.mortbay.jetty.Request.maxFormContentSize</Arg>
|
18
|
-
<Arg>1000000</Arg>
|
19
|
-
</Call>
|
20
|
-
|
21
|
-
<!-- =========================================================== -->
|
22
|
-
<!-- Server Thread Pool -->
|
23
|
-
<!-- =========================================================== -->
|
24
|
-
<Set name="ThreadPool">
|
25
|
-
<!-- Default bounded blocking threadpool
|
26
|
-
-->
|
27
|
-
<New class="org.mortbay.thread.BoundedThreadPool">
|
28
|
-
<Set name="minThreads">10</Set>
|
29
|
-
<Set name="lowThreads">50</Set>
|
30
|
-
<Set name="maxThreads">10000</Set>
|
31
|
-
</New>
|
32
|
-
|
33
|
-
<!-- Optional Java 5 bounded threadpool with job queue
|
34
|
-
<New class="org.mortbay.thread.concurrent.ThreadPool">
|
35
|
-
<Arg type="int">0</Arg>
|
36
|
-
<Set name="corePoolSize">10</Set>
|
37
|
-
<Set name="maximumPoolSize">250</Set>
|
38
|
-
</New>
|
39
|
-
-->
|
40
|
-
</Set>
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
<!-- =========================================================== -->
|
45
|
-
<!-- Set connectors -->
|
46
|
-
<!-- =========================================================== -->
|
47
|
-
<!-- One of each type! -->
|
48
|
-
<!-- =========================================================== -->
|
49
|
-
|
50
|
-
<!-- Use this connector for many frequently idle connections
|
51
|
-
and for threadless continuations.
|
52
|
-
<Call name="addConnector">
|
53
|
-
<Arg>
|
54
|
-
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
|
55
|
-
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
56
|
-
<Set name="maxIdleTime">30000</Set>
|
57
|
-
<Set name="Acceptors">2</Set>
|
58
|
-
<Set name="confidentialPort">8443</Set>
|
59
|
-
</New>
|
60
|
-
</Arg>
|
61
|
-
</Call>
|
62
|
-
-->
|
63
|
-
|
64
|
-
<!-- Use this connector if NIO is not available. -->
|
65
|
-
<!-- This connector is currently being used for Solr because the
|
66
|
-
nio.SelectChannelConnector showed poor performance under WindowsXP
|
67
|
-
from a single client with non-persistent connections (35s vs ~3min)
|
68
|
-
to complete 10,000 requests)
|
69
|
-
-->
|
70
|
-
<Call name="addConnector">
|
71
|
-
<Arg>
|
72
|
-
<New class="org.mortbay.jetty.bio.SocketConnector">
|
73
|
-
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
74
|
-
<Set name="maxIdleTime">50000</Set>
|
75
|
-
<Set name="lowResourceMaxIdleTime">1500</Set>
|
76
|
-
</New>
|
77
|
-
</Arg>
|
78
|
-
</Call>
|
79
|
-
|
80
|
-
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
81
|
-
<!-- To add a HTTPS SSL listener -->
|
82
|
-
<!-- see jetty-ssl.xml to add an ssl connector. use -->
|
83
|
-
<!-- java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml -->
|
84
|
-
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
85
|
-
|
86
|
-
<!-- =========================================================== -->
|
87
|
-
<!-- Set up global session ID manager -->
|
88
|
-
<!-- =========================================================== -->
|
89
|
-
<!--
|
90
|
-
<Set name="sessionIdManager">
|
91
|
-
<New class="org.mortbay.jetty.servlet.HashSessionIdManager">
|
92
|
-
<Set name="workerName">node1</Set>
|
93
|
-
</New>
|
94
|
-
</Set>
|
95
|
-
-->
|
96
|
-
|
97
|
-
<!-- =========================================================== -->
|
98
|
-
<!-- Set handler Collection Structure -->
|
99
|
-
<!-- =========================================================== -->
|
100
|
-
<Set name="handler">
|
101
|
-
<New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
|
102
|
-
<Set name="handlers">
|
103
|
-
<Array type="org.mortbay.jetty.Handler">
|
104
|
-
<Item>
|
105
|
-
<New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
|
106
|
-
</Item>
|
107
|
-
<Item>
|
108
|
-
<New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
|
109
|
-
</Item>
|
110
|
-
<Item>
|
111
|
-
<New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
|
112
|
-
</Item>
|
113
|
-
</Array>
|
114
|
-
</Set>
|
115
|
-
</New>
|
116
|
-
</Set>
|
117
|
-
|
118
|
-
<!-- =========================================================== -->
|
119
|
-
<!-- Configure the context deployer -->
|
120
|
-
<!-- A context deployer will deploy contexts described in -->
|
121
|
-
<!-- configuration files discovered in a directory. -->
|
122
|
-
<!-- The configuration directory can be scanned for hot -->
|
123
|
-
<!-- deployments at the configured scanInterval. -->
|
124
|
-
<!-- -->
|
125
|
-
<!-- This deployer is configured to deploy contexts configured -->
|
126
|
-
<!-- in the $JETTY_HOME/contexts directory -->
|
127
|
-
<!-- -->
|
128
|
-
<!-- =========================================================== -->
|
129
|
-
<Call name="addLifeCycle">
|
130
|
-
<Arg>
|
131
|
-
<New class="org.mortbay.jetty.deployer.ContextDeployer">
|
132
|
-
<Set name="contexts"><Ref id="Contexts"/></Set>
|
133
|
-
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
|
134
|
-
<Set name="scanInterval">1</Set>
|
135
|
-
</New>
|
136
|
-
</Arg>
|
137
|
-
</Call>
|
138
|
-
|
139
|
-
<!-- =========================================================== -->
|
140
|
-
<!-- Configure the webapp deployer. -->
|
141
|
-
<!-- A webapp deployer will deploy standard webapps discovered -->
|
142
|
-
<!-- in a directory at startup, without the need for additional -->
|
143
|
-
<!-- configuration files. It does not support hot deploy or -->
|
144
|
-
<!-- non standard contexts (see ContextDeployer above). -->
|
145
|
-
<!-- -->
|
146
|
-
<!-- This deployer is configured to deploy webapps from the -->
|
147
|
-
<!-- $JETTY_HOME/webapps directory -->
|
148
|
-
<!-- -->
|
149
|
-
<!-- Normally only one type of deployer need be used. -->
|
150
|
-
<!-- -->
|
151
|
-
<!-- =========================================================== -->
|
152
|
-
<Call name="addLifeCycle">
|
153
|
-
<Arg>
|
154
|
-
<New class="org.mortbay.jetty.deployer.WebAppDeployer">
|
155
|
-
<Set name="contexts"><Ref id="Contexts"/></Set>
|
156
|
-
<Set name="webAppDir"><SystemProperty name="jetty.home" default="."/>/webapps</Set>
|
157
|
-
<Set name="parentLoaderPriority">false</Set>
|
158
|
-
<Set name="extract">true</Set>
|
159
|
-
<Set name="allowDuplicates">false</Set>
|
160
|
-
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
|
161
|
-
</New>
|
162
|
-
</Arg>
|
163
|
-
</Call>
|
164
|
-
|
165
|
-
<!-- =========================================================== -->
|
166
|
-
<!-- Configure Authentication Realms -->
|
167
|
-
<!-- Realms may be configured for the entire server here, or -->
|
168
|
-
<!-- they can be configured for a specific web app in a context -->
|
169
|
-
<!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
|
170
|
-
<!-- example). -->
|
171
|
-
<!-- =========================================================== -->
|
172
|
-
<Set name="UserRealms">
|
173
|
-
<Array type="org.mortbay.jetty.security.UserRealm">
|
174
|
-
<!--
|
175
|
-
<Item>
|
176
|
-
<New class="org.mortbay.jetty.security.HashUserRealm">
|
177
|
-
<Set name="name">Test Realm</Set>
|
178
|
-
<Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
|
179
|
-
</New>
|
180
|
-
</Item>
|
181
|
-
-->
|
182
|
-
</Array>
|
183
|
-
</Set>
|
184
|
-
|
185
|
-
<!-- =========================================================== -->
|
186
|
-
<!-- Configure Request Log -->
|
187
|
-
<!-- Request logs may be configured for the entire server here, -->
|
188
|
-
<!-- or they can be configured for a specific web app in a -->
|
189
|
-
<!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
|
190
|
-
<!-- for an example). -->
|
191
|
-
<!-- =========================================================== -->
|
192
|
-
<Ref id="RequestLog">
|
193
|
-
<Set name="requestLog">
|
194
|
-
<!-- New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
|
195
|
-
<Arg><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Arg>
|
196
|
-
<Set name="retainDays">90</Set>
|
197
|
-
<Set name="append">true</Set>
|
198
|
-
<Set name="extended">false</Set>
|
199
|
-
<Set name="LogTimeZone">GMT</Set>
|
200
|
-
</New -->
|
201
|
-
</Set>
|
202
|
-
</Ref>
|
203
|
-
|
204
|
-
<!-- =========================================================== -->
|
205
|
-
<!-- extra options -->
|
206
|
-
<!-- =========================================================== -->
|
207
|
-
<Set name="stopAtShutdown">true</Set>
|
208
|
-
<!-- ensure/prevent Server: header being sent to browsers -->
|
209
|
-
<Set name="sendServerVersion">true</Set>
|
210
|
-
|
211
|
-
</Configure>
|
212
|
-
|