add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / src / site / src / documentation / conf / cli.xconf
1 <?xml version="1.0"?>
2 <!--
3   Copyright 2002-2004 The Apache Software Foundation or its licensors,
4   as applicable.
5
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <!--+
19     |  This is the Apache Cocoon command line configuration file.
20     |  Here you give the command line interface details of where
21     |  to find various aspects of your Cocoon installation.
22     |
23     |  If you wish, you can also use this file to specify the URIs
24     |  that you wish to generate.
25     |
26     |  The current configuration information in this file is for
27     |  building the Cocoon documentation. Therefore, all links here
28     |  are relative to the build context dir, which, in the build.xml
29     |  file, is set to ${build.context}
30     |
31     |  Options:
32     |    verbose:            increase amount of information presented
33     |                        to standard output (default: false)
34     |    follow-links:       whether linked pages should also be
35     |                        generated (default: true)
36     |    precompile-only:    precompile sitemaps and XSP pages, but
37     |                        do not generate any pages (default: false)
38     |    confirm-extensions: check the mime type for the generated page
39     |                        and adjust filename and links extensions
40     |                        to match the mime type
41     |                        (e.g. text/html->.html)
42     |
43     |  Note: Whilst using an xconf file to configure the Cocoon
44     |        Command Line gives access to more features, the use of
45     |        command line parameters is more stable, as there are
46     |        currently plans to improve the xconf format to allow
47     |        greater flexibility. If you require a stable and
48     |        consistent method for accessing the CLI, it is recommended
49     |        that you use the command line parameters to configure
50     |        the CLI. See documentation at:
51     |        http://cocoon.apache.org/2.1/userdocs/offline/
52     |        http://wiki.apache.org/cocoon/CommandLine
53     |
54     +-->
55
56 <cocoon verbose="true"
57         follow-links="true"
58         precompile-only="false"
59         confirm-extensions="false">
60
61    <!--+
62        |  The context directory is usually the webapp directory
63        |  containing the sitemap.xmap file.
64        |
65        |  The config file is the cocoon.xconf file.
66        |
67        |  The work directory is used by Cocoon to store temporary
68        |  files and cache files.
69        |
70        |  The destination directory is where generated pages will
71        |  be written (assuming the 'simple' mapper is used, see
72        |  below)
73        +-->
74    <context-dir>.</context-dir>
75    <config-file>WEB-INF/cocoon.xconf</config-file>
76    <work-dir>../tmp/cocoon-work</work-dir>
77    <dest-dir>../site</dest-dir>
78
79    <!--+
80        |  A checksum file can be used to store checksums for pages
81        |  as they are generated. When the site is next generated,
82        |  files will not be written if their checksum has not changed.
83        |  This means that it will be easier to detect which files
84        |  need to be uploaded to a server, using the timestamp.
85        +-->
86    <!--   <checksums-uri>build/work/checksums</checksums-uri>-->
87
88    <!--+
89        | Broken link reporting options:
90        |   Report into a text file, one link per line:
91        |     <broken-links type="text" report="filename"/>
92        |   Report into an XML file:
93        |     <broken-links type="xml" report="filename"/>
94        |   Ignore broken links (default):
95        |     <broken-links type="none"/>
96        |
97        |   Two attributes to this node specify whether a page should
98        |   be generated when an error has occured. 'generate' specifies
99        |   whether a page should be generated (default: true) and
100        |   extension specifies an extension that should be appended
101        |   to the generated page's filename (default: none)
102        |
103        |   Using this, a quick scan through the destination directory
104        |   will show broken links, by their filename extension.
105        +-->
106    <broken-links type="xml"
107                  file="../brokenlinks.xml"
108                  generate="false"
109                  extension=".error"
110                  show-referrers="true"/>
111
112    <!--+
113        |  Load classes at startup. This is necessary for generating
114        |  from sites that use SQL databases and JDBC.
115        |  The <load-class> element can be repeated if multiple classes
116        |  are needed.
117        +-->
118    <!--
119    <load-class>org.firebirdsql.jdbc.Driver</load-class>
120    -->
121
122    <!--+
123        |  Configures logging.
124        |  The 'log-kit' parameter specifies the location of the log kit
125        |  configuration file (usually called logkit.xconf.
126        |
127        |  Logger specifies the logging category (for all logging prior
128        |  to other Cocoon logging categories taking over)
129        |
130        |  Available log levels are:
131        |    DEBUG:        prints all level of log messages.
132        |    INFO:         prints all level of log messages except DEBUG
133        |                  ones.
134        |    WARN:         prints all level of log messages except DEBUG
135        |                  and INFO ones.
136        |    ERROR:        prints all level of log messages except DEBUG,
137        |                  INFO and WARN ones.
138        |    FATAL_ERROR:  prints only log messages of this level
139        +-->
140    <!-- <logging log-kit="WEB-INF/logkit.xconf" logger="cli" level="ERROR" /> -->
141
142    <!--+
143        |  Specifies the filename to be appended to URIs that
144        |  refer to a directory (i.e. end with a forward slash).
145        +-->
146    <default-filename>index.html</default-filename>
147
148    <!--+
149        |  Specifies a user agent string to the sitemap when
150        |  generating the site.
151        |
152        |  A generic term for a web browser is "user agent". Any
153        |  user agent, when connecting to a web server, will provide
154        |  a string to identify itself (e.g. as Internet Explorer or
155        |  Mozilla). It is possible to have Cocoon serve different
156        |  content depending upon the user agent string provided by
157        |  the browser. If your site does this, then you may want to
158        |  use this <user-agent> entry to provide a 'fake' user agent
159        |  to Cocoon, so that it generates the correct version of your
160        |  site.
161        |
162        |  For most sites, this can be ignored.
163        +-->
164    <!--
165    <user-agent>Cocoon Command Line Environment 2.1</user-agent>
166    -->
167
168    <!--+
169        |  Specifies an accept string to the sitemap when generating
170        |  the site.
171        |  User agents can specify to an HTTP server what types of content
172        |  (by mime-type) they are able to receive. E.g. a browser may be
173        |  able to handle jpegs, but not pngs. The HTTP accept header
174        |  allows the server to take the browser's capabilities into account,
175        |  and only send back content that it can handle.
176        |
177        |  For most sites, this can be ignored.
178        +-->
179
180    <accept>*/*</accept>
181
182    <!--+
183        | Specifies which URIs should be included or excluded, according
184        | to wildcard patterns.
185        |
186        | These includes/excludes are only relevant when you are following
187        | links. A link URI must match an include pattern (if one is given)
188        | and not match an exclude pattern, if it is to be followed by
189        | Cocoon. It can be useful, for example, where there are links in
190        | your site to pages that are not generated by Cocoon, such as
191        | references to api-documentation.
192        |
193        | By default, all URIs are included. If both include and exclude
194        | patterns are specified, a URI is first checked against the
195        | include patterns, and then against the exclude patterns.
196        |
197        | Multiple patterns can be given, using muliple include or exclude
198        | nodes.
199        |
200        | The order of the elements is not significant, as only the first
201        | successful match of each category is used.
202        |
203        | Currently, only the complete source URI can be matched (including
204        | any URI prefix). Future plans include destination URI matching
205        | and regexp matching. If you have requirements for these, contact
206        | dev@cocoon.apache.org.
207        +-->
208
209    <exclude pattern="**/"/>
210    <exclude pattern="**apidocs**"/>
211    <exclude pattern="api/**"/>
212    <exclude pattern="**/api/contrib**"/>
213    <exclude pattern="**changes/Contrib-Changes.html"/>
214    <exclude pattern="**changes/Changes.html"/>
215 <!--
216   This is a workaround for FOR-284 "link rewriting broken when
217   linking to xml source views which contain site: links".
218   See the explanation there and in declare-broken-site-links.xsl
219 -->
220    <exclude pattern="site:**"/>
221    <exclude pattern="ext:**"/>
222    <exclude pattern="**/site:**"/>
223    <exclude pattern="**/ext:**"/>
224
225    <!-- Exclude tokens used in URLs to ASF mirrors (interpreted by a CGI) -->
226    <exclude pattern="[preferred]/**"/>
227    <exclude pattern="[location]"/>
228
229    <!--   <include-links extension=".html"/>-->
230
231    <!--+
232        |  <uri> nodes specify the URIs that should be generated, and
233        |  where required, what should be done with the generated pages.
234        |  They describe the way the URI of the generated file is created
235        |  from the source page's URI. There are three ways that a generated
236        |  file URI can be created: append, replace and insert.
237        |
238        |  The "type" attribute specifies one of (append|replace|insert):
239        |
240        |  append:
241        |  Append the generated page's URI to the end of the source URI:
242        |
243        |   <uri type="append" src-prefix="documents/" src="index.html"
244        |   dest="build/dest/"/>
245        |
246        |  This means that
247        |   (1) the "documents/index.html" page is generated
248        |   (2) the file will be written to "build/dest/documents/index.html"
249        |
250        |  replace:
251        |  Completely ignore the generated page's URI - just
252        |  use the destination URI:
253        |
254        |   <uri type="replace" src-prefix="documents/" src="index.html"
255        |   dest="build/dest/docs.html"/>
256        |
257        |  This means that
258        |   (1) the "documents/index.html" page is generated
259        |   (2) the result is written to "build/dest/docs.html"
260        |   (3) this works only for "single" pages - and not when links
261        |       are followed
262        |
263        |  insert:
264        |  Insert generated page's URI into the destination
265        |  URI at the point marked with a * (example uses fictional
266        |  zip protocol)
267        |
268        |   <uri type="insert" src-prefix="documents/" src="index.html"
269        |   dest="zip://*.zip/page.html"/>
270        |
271        |  This means that
272        |   (1)
273        |
274        |  In any of these scenarios, if the dest attribute is omitted,
275        |  the value provided globally using the <dest-dir> node will
276        |  be used instead.
277        +-->
278    <!--
279    <uri type="replace"
280         src-prefix="samples/"
281         src="hello-world/hello.html"
282         dest="build/dest/hello-world.html"/>
283    -->
284
285    <!--+
286        | <uri> nodes can be grouped together in a <uris> node. This
287        | enables a group of URIs to share properties. The following
288        | properties can be set for a group of URIs:
289        |   * follow-links:       should pages be crawled for links
290        |   * confirm-extensions: should file extensions be checked
291        |                         for the correct mime type
292        |   * src-prefix:         all source URIs should be
293        |                         pre-pended with this prefix before
294        |                         generation. The prefix is not
295        |                         included when calculating the
296        |                         destination URI
297        |   * dest:               the base destination URI to be
298        |                         shared by all pages in this group
299        |   * type:               the method to be used to calculate
300        |                         the destination URI. See above
301        |                         section on <uri> node for details.
302        |
303        | Each <uris> node can have a name attribute. When a name
304        | attribute has been specified, the -n switch on the command
305        | line can be used to tell Cocoon to only process the URIs
306        | within this URI group. When no -n switch is given, all
307        | <uris> nodes are processed. Thus, one xconf file can be
308        | used to manage multiple sites.
309        +-->
310    <!--
311    <uris name="mirrors" follow-links="false">
312      <uri type="append" src="mirrors.html"/>
313    </uris>
314    -->
315
316    <!--+
317        |  File containing URIs (plain text, one per line).
318        +-->
319    <!--
320    <uri-file>uris.txt</uri-file>
321    -->
322 </cocoon>