avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 35619 - in avalon/trunk/planet/facilities/http/blocks/demo: . etc
Date Tue, 03 Aug 2004 07:13:37 GMT
Author: niclas
Date: Tue Aug  3 00:13:35 2004
New Revision: 35619

Added:
   avalon/trunk/planet/facilities/http/blocks/demo/
   avalon/trunk/planet/facilities/http/blocks/demo/README.TXT
   avalon/trunk/planet/facilities/http/blocks/demo/build.properties   (contents, props changed)
   avalon/trunk/planet/facilities/http/blocks/demo/build.xml   (contents, props changed)
   avalon/trunk/planet/facilities/http/blocks/demo/etc/
   avalon/trunk/planet/facilities/http/blocks/demo/etc/config.xml   (contents, props changed)
Log:
Start working on a demo facility block.

Added: avalon/trunk/planet/facilities/http/blocks/demo/README.TXT
==============================================================================
--- (empty file)
+++ avalon/trunk/planet/facilities/http/blocks/demo/README.TXT	Tue Aug  3 00:13:35 2004
@@ -0,0 +1,11 @@
+
+To test the server:
+
+$ ant
+$ merlin target\deliverables\blocks\avalon-http-demo-SNAPSHOT.block
+
+or
+
+$ merlin artifact:block:avalon/http/avalon-http-demo#SNAPSHOT
+
+

Added: avalon/trunk/planet/facilities/http/blocks/demo/build.properties
==============================================================================
--- (empty file)
+++ avalon/trunk/planet/facilities/http/blocks/demo/build.properties	Tue Aug  3 00:13:35 2004
@@ -0,0 +1,2 @@
+project.system = ../../../../../central/system
+project.home = ..

Added: avalon/trunk/planet/facilities/http/blocks/demo/build.xml
==============================================================================
--- (empty file)
+++ avalon/trunk/planet/facilities/http/blocks/demo/build.xml	Tue Aug  3 00:13:35 2004
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="avalon-http-demo" default="install" basedir="." 
+    xmlns:x="antlib:org.apache.avalon.tools">
+
+  <property file="build.properties"/>
+  <import file="${project.system}/build/standard.xml"/>
+
+  <target name="build" depends="standard.build">
+    <x:block name="demo">
+      <x:include name="server" artifact="block:avalon/http/avalon-http-server#SNAPSHOT"/>
+      <x:component name="context" class="org.apache.avalon.http.impl.HttpContextImpl"/>
+      <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="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="request.log"/>
+          <x:parameter name="append" value="true"/>
+          <x:parameter name="extended" value="true"/>
+        </x:parameters>
+      </x:component>
+    </x:block>
+  </target>
+
+</project>

Added: avalon/trunk/planet/facilities/http/blocks/demo/etc/config.xml
==============================================================================
--- (empty file)
+++ avalon/trunk/planet/facilities/http/blocks/demo/etc/config.xml	Tue Aug  3 00:13:35 2004
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<targets>
+
+  <target path="/demo/context">
+    <configuration>
+      <context-path>/static</context-path>
+      <resource-base>/abc</resource-base>
+    </configuration>
+  </target>
+
+</targets>

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message