diff options
author | Jesse McConnell | 2010-10-04 21:43:33 +0000 |
---|---|---|
committer | Jesse McConnell | 2010-10-04 21:43:33 +0000 |
commit | fd0009f58990fa51f416de9875b6035ebef2eb58 (patch) | |
tree | da992e8be7d6f8d7a12e6da14890be2881005da0 | |
parent | 78a050de1c0a591c76d225555ecbbca229eeeb54 (diff) | |
download | org.eclipse.jetty.project-fd0009f58990fa51f416de9875b6035ebef2eb58.tar.gz org.eclipse.jetty.project-fd0009f58990fa51f416de9875b6035ebef2eb58.tar.xz org.eclipse.jetty.project-fd0009f58990fa51f416de9875b6035ebef2eb58.zip |
add javadoc.xml context to serve out the jetty documentation
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2315 7e9141cc-0065-0410-87d8-b60c137991c4
-rw-r--r-- | jetty-distribution/src/main/resources/contexts/javadoc.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/jetty-distribution/src/main/resources/contexts/javadoc.xml b/jetty-distribution/src/main/resources/contexts/javadoc.xml new file mode 100644 index 0000000000..d2a1509300 --- /dev/null +++ b/jetty-distribution/src/main/resources/contexts/javadoc.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> + +<!-- +Configure a custom context for the javadoc. + +This context contains only a ServletHandler with a default servlet +to serve static html files and images. +--> + +<Configure class="org.eclipse.jetty.server.handler.ContextHandler"> + <Call class="org.eclipse.jetty.util.log.Log" name="debug"><Arg>Configure javadoc.xml</Arg></Call> + <Set name="contextPath">/javadoc</Set> + <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/javadoc/</Set> + <Set name="handler"> + <New class="org.eclipse.jetty.server.handler.ResourceHandler"> + <Set name="welcomeFiles"> + <Array type="String"> + <Item>index.html</Item> + </Array> + </Set> + <Set name="cacheControl">max-age=3600,public</Set> + </New> + </Set> + +</Configure> + |