<?xml version="1.0" encoding="UTF-8" ?>
<!-- 
 * Copyright 2004 Apache Software Foundation
 * Licensed  under the  Apache License,  Version 2.0  (the "License");
 * you may not use  this file  except in  compliance with the License.
 * You may obtain a copy of the License at 
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed  under the  License is distributed on an "AS IS" BASIS,
 * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
 * implied.
 * 
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<project name="avalon-http-static" default="install" basedir="." 
    xmlns:x="antlib:org.apache.avalon.tools"
>
  <property file="build.properties"/>
  <x:home/>
  <import file="${magic.templates}/standard.xml"/>

  <target name="build" depends="standard.build">
    <x:block name="static">
      <x:component name="context" class="org.apache.avalon.http.impl.HttpContextImpl"/>
      <x:component name="security-handler" class="org.apache.avalon.http.impl.SecurityHandler"/>
      <x:component name="resource-handler" class="org.apache.avalon.http.impl.ResourceHandler">
        <x:parameters>
          <x:parameter name="allow-directory" value="true"/>
          <x:parameter name="allow-methods" value="GET"/>
        </x:parameters>
      </x:component>
      <x:component name="forward-handler" class="org.apache.avalon.http.impl.ForwardHandler"/>
      <x:component name="notfound-handler" class="org.apache.avalon.http.impl.NotFoundHandler"/>
      <x:component name="request-log" class="org.apache.avalon.http.impl.NcsaRequestLog">
        <x:parameters>
          <x:parameter name="filename" value="static_request.log"/>
          <x:parameter name="append" value="true"/>
          <x:parameter name="extended" value="true"/>
        </x:parameters>
      </x:component>
    </x:block>
  </target>

</project>
