solrsrv 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/.document +5 -0
- data/.gitignore +11 -0
- data/LICENSE +20 -0
- data/README.md +27 -0
- data/Rakefile +28 -0
- data/VERSION +1 -0
- data/apache-solr-1.4.0/README.txt +42 -0
- data/apache-solr-1.4.0/etc/jetty.xml +212 -0
- data/apache-solr-1.4.0/etc/webdefault.xml +379 -0
- data/apache-solr-1.4.0/example-DIH/README.txt +43 -0
- data/apache-solr-1.4.0/example-DIH/hsqldb/ex.backup +0 -0
- data/apache-solr-1.4.0/example-DIH/hsqldb/ex.data +0 -0
- data/apache-solr-1.4.0/example-DIH/hsqldb/ex.log +2 -0
- data/apache-solr-1.4.0/example-DIH/hsqldb/ex.properties +17 -0
- data/apache-solr-1.4.0/example-DIH/hsqldb/ex.script +12 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/admin-extra.html +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/db-data-config.xml +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/elevate.xml +36 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/protwords.txt +21 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/schema.xml +356 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/scripts.conf +24 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/solrconfig.xml +705 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/stopwords.txt +58 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/synonyms.txt +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/xslt/example.xsl +132 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/xslt/example_atom.xsl +63 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/xslt/example_rss.xsl +62 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/conf/xslt/luke.xsl +345 -0
- data/apache-solr-1.4.0/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar +0 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/data-config.xml +11 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/protwords.txt +21 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/schema.xml +370 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/solrconfig.xml +807 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/stopwords.txt +58 -0
- data/apache-solr-1.4.0/example-DIH/solr/mail/conf/synonyms.txt +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/admin-extra.html +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/elevate.xml +36 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/protwords.txt +21 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/rss-data-config.xml +26 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/schema.xml +316 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/scripts.conf +24 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/solrconfig.xml +704 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/stopwords.txt +58 -0
- data/apache-solr-1.4.0/example-DIH/solr/rss/conf/synonyms.txt +31 -0
- data/apache-solr-1.4.0/example-DIH/solr/solr.xml +8 -0
- data/apache-solr-1.4.0/exampledocs/books.csv +11 -0
- data/apache-solr-1.4.0/exampledocs/hd.xml +48 -0
- data/apache-solr-1.4.0/exampledocs/ipod_other.xml +52 -0
- data/apache-solr-1.4.0/exampledocs/ipod_video.xml +36 -0
- data/apache-solr-1.4.0/exampledocs/mem.xml +60 -0
- data/apache-solr-1.4.0/exampledocs/monitor.xml +31 -0
- data/apache-solr-1.4.0/exampledocs/monitor2.xml +30 -0
- data/apache-solr-1.4.0/exampledocs/mp500.xml +39 -0
- data/apache-solr-1.4.0/exampledocs/payload.xml +57 -0
- data/apache-solr-1.4.0/exampledocs/post.jar +0 -0
- data/apache-solr-1.4.0/exampledocs/post.sh +28 -0
- data/apache-solr-1.4.0/exampledocs/sd500.xml +34 -0
- data/apache-solr-1.4.0/exampledocs/solr.xml +38 -0
- data/apache-solr-1.4.0/exampledocs/test_utf8.sh +83 -0
- data/apache-solr-1.4.0/exampledocs/utf8-example.xml +42 -0
- data/apache-solr-1.4.0/exampledocs/vidcard.xml +54 -0
- data/apache-solr-1.4.0/lib/jetty-6.1.3.jar +0 -0
- data/apache-solr-1.4.0/lib/jetty-util-6.1.3.jar +0 -0
- data/apache-solr-1.4.0/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/apache-solr-1.4.0/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/apache-solr-1.4.0/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/apache-solr-1.4.0/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/apache-solr-1.4.0/lib/servlet-api-2.5-6.1.3.jar +0 -0
- data/apache-solr-1.4.0/logs/.gitkeep +0 -0
- data/apache-solr-1.4.0/multicore/README.txt +3 -0
- data/apache-solr-1.4.0/multicore/core0/conf/schema.xml +41 -0
- data/apache-solr-1.4.0/multicore/core0/conf/solrconfig.xml +40 -0
- data/apache-solr-1.4.0/multicore/core1/conf/schema.xml +41 -0
- data/apache-solr-1.4.0/multicore/core1/conf/solrconfig.xml +40 -0
- data/apache-solr-1.4.0/multicore/exampledocs/ipod_other.xml +34 -0
- data/apache-solr-1.4.0/multicore/exampledocs/ipod_video.xml +22 -0
- data/apache-solr-1.4.0/multicore/solr.xml +35 -0
- data/apache-solr-1.4.0/solr/README.txt +54 -0
- data/apache-solr-1.4.0/solr/conf/admin-extra.html +31 -0
- data/apache-solr-1.4.0/solr/conf/elevate.xml +36 -0
- data/apache-solr-1.4.0/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/apache-solr-1.4.0/solr/conf/protwords.txt +21 -0
- data/apache-solr-1.4.0/solr/conf/schema.xml +569 -0
- data/apache-solr-1.4.0/solr/conf/scripts.conf +24 -0
- data/apache-solr-1.4.0/solr/conf/solrconfig.xml +1033 -0
- data/apache-solr-1.4.0/solr/conf/spellings.txt +2 -0
- data/apache-solr-1.4.0/solr/conf/stopwords.txt +58 -0
- data/apache-solr-1.4.0/solr/conf/synonyms.txt +31 -0
- data/apache-solr-1.4.0/solr/conf/xslt/example.xsl +132 -0
- data/apache-solr-1.4.0/solr/conf/xslt/example_atom.xsl +67 -0
- data/apache-solr-1.4.0/solr/conf/xslt/example_rss.xsl +66 -0
- data/apache-solr-1.4.0/solr/conf/xslt/luke.xsl +337 -0
- data/apache-solr-1.4.0/start.jar +0 -0
- data/apache-solr-1.4.0/webapps/solr.war +0 -0
- data/bin/solrsrv +39 -0
- data/lib/generators/solrsrv/update_config/templates/solrsrv.yml +17 -0
- data/lib/generators/solrsrv/update_config/update_config_generator.rb +17 -0
- data/lib/solrsrv/engine.rb +6 -0
- data/lib/solrsrv.rb +5 -0
- data/lib/tasks/solrsrv.rake +49 -0
- data/solrsrv.gemspec +143 -0
- metadata +184 -0
data/.document
ADDED
data/.gitignore
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2009 Geraud
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# solrsrv
|
|
2
|
+
|
|
3
|
+
Solrsrv is just a very small wrapping of the 'example' directory that comes with SOLR's distribution. This gem is here to provide a very basic search server in your development environment.
|
|
4
|
+
|
|
5
|
+
## How to use with Rails 3.x
|
|
6
|
+
|
|
7
|
+
0. Add solrsrv to your Gemfile
|
|
8
|
+
|
|
9
|
+
group :dev do
|
|
10
|
+
gem 'solrsrv'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
0. Create the configuration file. (This step is optional)
|
|
14
|
+
|
|
15
|
+
rails g solrsrv:update_config
|
|
16
|
+
|
|
17
|
+
0. Start and stop the server using the built in rake tasks:
|
|
18
|
+
|
|
19
|
+
rake solrsrv:start
|
|
20
|
+
|
|
21
|
+
or
|
|
22
|
+
|
|
23
|
+
rake solrsrv:stop
|
|
24
|
+
|
|
25
|
+
## Copyright
|
|
26
|
+
|
|
27
|
+
Copyright © 2010 Geraud Boyer. See LICENSE for details.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
|
|
4
|
+
SOLR_DIRECTORY='apache-solr-1.4.0'
|
|
5
|
+
|
|
6
|
+
begin
|
|
7
|
+
require 'jeweler'
|
|
8
|
+
Jeweler::Tasks.new do |gem|
|
|
9
|
+
gem.name = 'solrsrv'
|
|
10
|
+
gem.summary = %Q{Gem wrapping for solr server}
|
|
11
|
+
gem.description = %Q{This gem is a very basic installation of solr}
|
|
12
|
+
gem.email = 'geraud@gmail.com'
|
|
13
|
+
gem.homepage = 'http://github.com/geraud/solrsrv'
|
|
14
|
+
gem.authors = ['Geraud Boyer']
|
|
15
|
+
gem.files += Dir['{bin}/**/*', '{lib}/**/*']
|
|
16
|
+
gem.files += Dir["#{SOLR_DIRECTORY}/**/*"].select do |filename|
|
|
17
|
+
filename !~ %r(^#{SOLR_DIRECTORY}/(work|log|solr/data))
|
|
18
|
+
end
|
|
19
|
+
gem.bindir = 'bin'
|
|
20
|
+
gem.executables= 'solrsrv'
|
|
21
|
+
gem.add_dependency 'rails', '3.0.0.rc'
|
|
22
|
+
end
|
|
23
|
+
Jeweler::GemcutterTasks.new
|
|
24
|
+
rescue LoadError
|
|
25
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
task :default => :build
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.0
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
+
# contributor license agreements. See the NOTICE file distributed with
|
|
3
|
+
# this work for additional information regarding copyright ownership.
|
|
4
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
5
|
+
# (the "License"); you may not use this file except in compliance with
|
|
6
|
+
# the License. You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
Solr example configuration
|
|
17
|
+
--------------------------
|
|
18
|
+
|
|
19
|
+
To run this example configuration, use
|
|
20
|
+
|
|
21
|
+
java -jar start.jar
|
|
22
|
+
|
|
23
|
+
in this directory, and when Solr is started connect to
|
|
24
|
+
|
|
25
|
+
http://localhost:8983/solr/admin/
|
|
26
|
+
|
|
27
|
+
To add documents to the index, use the post.sh script in the exampledocs
|
|
28
|
+
subdirectory (while Solr is running), for example:
|
|
29
|
+
|
|
30
|
+
cd exampledocs
|
|
31
|
+
./post.sh *.xml
|
|
32
|
+
|
|
33
|
+
See also README.txt in the solr subdirectory, and check
|
|
34
|
+
http://wiki.apache.org/solr/SolrResources for a list of tutorials and
|
|
35
|
+
introductory articles.
|
|
36
|
+
|
|
37
|
+
NOTE: This Solr example server references SolrCell jars outside of the server
|
|
38
|
+
directory with <lib> statements in the solrconfig.xml. If you make a copy of
|
|
39
|
+
this example server and wish to use the ExtractingRequestHandler (SolrCell),
|
|
40
|
+
you will need to copy the required jars into solr/lib or update the paths to
|
|
41
|
+
the jars in your solrconfig.xml.
|
|
42
|
+
|
|
@@ -0,0 +1,212 @@
|
|
|
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
|
+
|