tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/webdav build.xml index.html tomcat-power.gif tomcat.gif
Date Sun, 01 Feb 2004 18:25:27 GMT
markt       2004/02/01 10:25:27

  Modified:    webapps/ROOT index.jsp
               webapps  build.xml
  Added:       webapps/webdav/WEB-INF web.xml
               webapps/webdav build.xml index.html tomcat-power.gif
                        tomcat.gif
  Log:
  - Add WebDAV webapp to TC5. Copied from TC4. Servlet mapping modified to ensure correct
behaviour for all requests.
  
  Revision  Changes    Path
  1.14      +1 -0      jakarta-tomcat-catalina/webapps/ROOT/index.jsp
  
  Index: index.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/ROOT/index.jsp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- index.jsp	2 Oct 2003 01:44:07 -0000	1.13
  +++ index.jsp	1 Feb 2004 18:25:27 -0000	1.14
  @@ -118,6 +118,7 @@
                       <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
                           <a href="jsp-examples/">JSP Examples</a><br>
                           <a href="servlets-examples/">Servlet Examples</a><br>
  +                        <a href="webdav/">WebDAV capabilities</a><br>
                           &nbsp;
                       </td>
                   </tr>
  
  
  
  1.4       +5 -1      jakarta-tomcat-catalina/webapps/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	20 Nov 2003 18:20:42 -0000	1.3
  +++ build.xml	1 Feb 2004 18:25:27 -0000	1.4
  @@ -49,10 +49,14 @@
       <ant dir="${basedir}/balancer" target="dist"/>
     </target>
   
  +  <target name="webdav">
  +    <ant dir="${basedir}/webdav" target="dist"/>
  +  </target>
  +
   
     <!-- ================= BUILD: Compile Server Components ================= -->
     <!-- Update the depends list for each subproject -->
  -  <target name="build" depends="build-prepare,ROOT,admin,manager,docs,balancer"/>
  +  <target name="build" depends="build-prepare,ROOT,admin,manager,docs,balancer,webdav"
/>
   
   
     <!-- ======================= BUILD: Clean Directory ===================== -->
  
  
  
  1.1                  jakarta-tomcat-catalina/webapps/webdav/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">
  
  <web-app>
  
    <display-name>Webdav Content Management</display-name>
    <description>
       Webdav Content Management
    </description>
  
    <servlet>
      <servlet-name>webdav</servlet-name>
      <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
      <init-param>
        <param-name>debug</param-name>
        <param-value>0</param-value>
      </init-param>
      <init-param>
        <param-name>listings</param-name>
        <param-value>true</param-value>
      </init-param>
      <!-- Uncomment this to enable read and write access -->
  <!--
      <init-param>
        <param-name>readonly</param-name>
        <param-value>false</param-value>
      </init-param>
  -->
      <!--load-on-startup>1</load-on-startup-->
    </servlet>
  
    <!-- The mapping for the webdav servlet -->
    <!-- Using /* as the mapping ensures that jasper etc are over-ridden and all
         requests are processed by the webdav servlet -->
    <servlet-mapping>
      <servlet-name>webdav</servlet-name>
      <url-pattern>/*</url-pattern>
    </servlet-mapping>
  
    <!-- Establish the default MIME type mappings -->
    <mime-mapping>
      <extension>txt</extension>
      <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>html</extension>
      <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>htm</extension>
      <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>gif</extension>
      <mime-type>image/gif</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>jpg</extension>
      <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>jpe</extension>
      <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>jpeg</extension>
      <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>java</extension>
      <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>body</extension>
      <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>rtx</extension>
      <mime-type>text/richtext</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tsv</extension>
      <mime-type>text/tab-separated-values</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>etx</extension>
      <mime-type>text/x-setext</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ps</extension>
      <mime-type>application/x-postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>class</extension>
      <mime-type>application/java</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>csh</extension>
      <mime-type>application/x-csh</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>sh</extension>
      <mime-type>application/x-sh</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tcl</extension>
      <mime-type>application/x-tcl</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tex</extension>
      <mime-type>application/x-tex</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>texinfo</extension>
      <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>texi</extension>
      <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>t</extension>
      <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tr</extension>
      <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>roff</extension>
      <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>man</extension>
      <mime-type>application/x-troff-man</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>me</extension>
      <mime-type>application/x-troff-me</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ms</extension>
      <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>src</extension>
      <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>zip</extension>
      <mime-type>application/zip</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>bcpio</extension>
      <mime-type>application/x-bcpio</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>cpio</extension>
      <mime-type>application/x-cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>gtar</extension>
      <mime-type>application/x-gtar</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>shar</extension>
      <mime-type>application/x-shar</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>sv4cpio</extension>
      <mime-type>application/x-sv4cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>sv4crc</extension>
      <mime-type>application/x-sv4crc</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tar</extension>
      <mime-type>application/x-tar</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ustar</extension>
      <mime-type>application/x-ustar</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>dvi</extension>
      <mime-type>application/x-dvi</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>hdf</extension>
      <mime-type>application/x-hdf</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>latex</extension>
      <mime-type>application/x-latex</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>bin</extension>
      <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>oda</extension>
      <mime-type>application/oda</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>pdf</extension>
      <mime-type>application/pdf</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ps</extension>
      <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>eps</extension>
      <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ai</extension>
      <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>rtf</extension>
      <mime-type>application/rtf</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>nc</extension>
      <mime-type>application/x-netcdf</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>cdf</extension>
      <mime-type>application/x-netcdf</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>cer</extension>
      <mime-type>application/x-x509-ca-cert</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>exe</extension>
      <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>gz</extension>
      <mime-type>application/x-gzip</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>Z</extension>
      <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>z</extension>
      <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>hqx</extension>
      <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mif</extension>
      <mime-type>application/x-mif</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ief</extension>
      <mime-type>image/ief</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tiff</extension>
      <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>tif</extension>
      <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ras</extension>
      <mime-type>image/x-cmu-raster</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>pnm</extension>
      <mime-type>image/x-portable-anymap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>pbm</extension>
      <mime-type>image/x-portable-bitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>pgm</extension>
      <mime-type>image/x-portable-graymap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>ppm</extension>
      <mime-type>image/x-portable-pixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>rgb</extension>
      <mime-type>image/x-rgb</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>xbm</extension>
      <mime-type>image/x-xbitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>xpm</extension>
      <mime-type>image/x-xpixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>xwd</extension>
      <mime-type>image/x-xwindowdump</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>au</extension>
      <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>snd</extension>
      <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>aif</extension>
      <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>aiff</extension>
      <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>aifc</extension>
      <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>wav</extension>
      <mime-type>audio/x-wav</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mpeg</extension>
      <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mpg</extension>
      <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mpe</extension>
      <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>qt</extension>
      <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mov</extension>
      <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>avi</extension>
      <mime-type>video/x-msvideo</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>movie</extension>
      <mime-type>video/x-sgi-movie</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>avx</extension>
      <mime-type>video/x-rad-screenplay</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>wrl</extension>
      <mime-type>x-world/x-vrml</mime-type>
    </mime-mapping>
    <mime-mapping>
      <extension>mpv2</extension>
      <mime-type>video/mpeg2</mime-type>
    </mime-mapping>
  
    <!-- ================ Security Constraints for Testing =============== -->
  
  <!--
    <security-constraint>
      <web-resource-collection>
        <web-resource-name>The Entire Web Application</web-resource-name>
        <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <auth-constraint>
        <role-name>tomcat</role-name>
      </auth-constraint>
    </security-constraint>
  
    <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Tomcat Supported Realm</realm-name>
    </login-config>
  
    <security-role>
      <description>
        An example role defined in "conf/tomcat-users.xml"
      </description>
      <role-name>tomcat</role-name>
    </security-role>
  -->
  
  </web-app>
  
  
  
  1.1                  jakarta-tomcat-catalina/webapps/webdav/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="webdav" default="build-main" basedir=".">
  
  
    <!-- ===================== Initialize Property Values =================== -->
  
    <!-- See "build.properties.sample" in the top level directory for all     -->
    <!-- property values you must customize for successful building!!!        -->
    <property file="build.properties"/>
    <property file="../build.properties"/>
    <property file="../../build.properties"/>
    <property file="${user.home}/build.properties"/>
  
    <property name="build.compiler"  value="classic"/>
    <property name="webapps.build"   value="../build"/>
    <property name="webapps.dist"    value="../dist"/>
    <property name="webapp.name"     value="webdav"/>
  
  
    <!-- =================== BUILD: Create Directories ====================== -->
    <target name="build-prepare">
      <mkdir dir="${webapps.build}"/>
      <mkdir dir="${webapps.build}/${webapp.name}"/>
      <mkdir dir="${webapps.build}/${webapp.name}/WEB-INF"/>
    </target>
  
  
    <!-- ================ BUILD: Copy Static Files ========================== -->
    <target name="build-static" depends="build-prepare">
      <copy todir="${webapps.build}/${webapp.name}">
        <fileset dir=".">
          <exclude name="build.*"/>
        </fileset>
      </copy>
    </target>
  
  
    <!-- ================= BUILD: Compile Server Components ================= -->
    <target name="build-main" depends="build-static"/>
  
  
    <!-- ==================== BUILD: Rebuild Everything ===================== -->
    <target name="all" depends="build-clean,build-main"
     description="Clean and build webdav webapp"/>
  
  
    <!-- ======================= BUILD: Clean Directory ===================== -->
    <target name="build-clean">
      <delete dir="${webapps.build}/${webapp.name}"/>
    </target>
  
  
    <!-- ======================= DIST: Create Directories =================== -->
    <target name="dist-prepare">
      <mkdir dir="${webapps.dist}"/>
    </target>
  
  
    <!-- ======================= DIST: Create Distribution Files ============ -->
    <target name="dist" depends="build-main,dist-prepare"
     description="Create webdav webapp binary distribution">
        <jar   jarfile="${webapps.dist}/${webapp.name}.war"
               basedir="${webapps.build}/${webapp.name}" includes="**"/>
    </target>
  
  
    <!-- ======================= DIST: Clean Directory ====================== -->
    <target name="dist-clean">
      <delete dir="${dist.dir}/${webapp.name}"/>
    </target>
  
  
    <!-- ====================== Convenient Synonyms ========================= -->
    <target name="clean" depends="build-clean,dist-clean"
     description="Clean build and dist directories"/>
  
  
  </project>
  
  
  
  1.1                  jakarta-tomcat-catalina/webapps/webdav/index.html
  
  Index: index.html
  ===================================================================
  <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
  <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="GENERATOR" content="Mozilla/4.72 [en] (WinNT; U) [Netscape]">
  <meta name="Author" content="Anil K. Vijendran">
  <title>Tomcat WebDAV support</title>
  </head>
  <body bgcolor="#FFFFFF">
  <img SRC="tomcat.gif" height=92 width=130 align=LEFT><b><font face="Arial,
Helvetica, sans-serif"><font size=+3>Tomcat</font></font></b> 
  <br>
  <b><font face="Arial, Helvetica, sans-serif"><font size=-1>WebDAV support</font></font></b>
  <p>This is the home page for the webdav context. This page is located at:
  <ul>
  <li>
  <font face="Courier New, Courier,mono">$TOMCAT_HOME/webapps/webdav/index.html</font></li>
  </ul>
  
  <p>Tomcat includes built-in support for WebDAV level 2, which enables 
  remote authoring of the website. You can test these capabilities using a WebDAV
  client like MS WebFolders (included with IE 4.0 and up), MS Office 2000, DAV
  Explorer (others are listed on the webpages linked below), and point to the
  <b>/webdav</b> path of the server.
  
  <p>This test context is DAV enabled, but has been set up in read-only mode for
  safety reasons. It can be put in read-write mode by editing the web 
  application descriptor file (WEB-INF/web.xml).
  
  <p>Working WebDAV clients include :
  <ul>
  <li>Adobe GoLive 5.0 (and other WebDAV-enabled Adobe products, like
    Photoshop)</li>
  <li>Cadaver 0.15</li>
  <li>DAV Explorer 0.60 and 0.70</li>
  <li>Internet Explorer 5 (Windows 2000)</li>
  <li>Internet Explorer 5.5 (Windows 2000)</li>
  <li>Jakarta Slide 1.0 WebDAV client library</li>
  <li>Office 2000 (Windows 2000)</li>
  <li>SkunkDAV 1.0</li>
  </ul>
  
  <p>WebDAV links:</p>
  <ul>
  <li><b><a href="http://www.webdav.org">General info on WebDAV</a></b></li>
  <li><b><a href="http://www.ics.uci.edu/pub/ietf/webdav/">WebDAV working

  group</a></b></li>
  <li><b><a href="http://www.webdav.org/projects/">WebDAV clients</a></b></li>
  <li><b>
  <a href="http://jakarta.apache.org/slide/">The Jakarta Slide Project</a>
  </b></li>
  </ul>
  
  
  <hr>
  <p align="right"><font size=-1><img src="tomcat-power.gif" width="77" height="80"></font><br>
  &nbsp;
  <font size=-1>Copyright &copy; 1999-2001 Apache Software Foundation</font><br>
  <font size=-1>All Rights Reserved</font> <br>
  &nbsp;</p>
  <p align="right">&nbsp;</p>
  </body>
  </html>
  
  
  
  1.1                  jakarta-tomcat-catalina/webapps/webdav/tomcat-power.gif
  
  	<<Binary file>>
  
  
  1.1                  jakarta-tomcat-catalina/webapps/webdav/tomcat.gif
  
  	<<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message