You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2006/03/03 15:03:43 UTC
svn commit: r382825 - in
/cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample: ./
cocoon-deploy.xml pom.xml src/ src/main/ src/main/webapp/
src/main/webapp/WEB-INF/ src/main/webapp/WEB-INF/web.xml
Author: reinhard
Date: Fri Mar 3 06:03:42 2006
New Revision: 382825
URL: http://svn.apache.org/viewcvs?rev=382825&view=rev
Log:
initial version of a (very simple) webapplication, that uses blocks
and the block deployer can create a working webapp
(just call 'mvn cocoon:deploy jetty6:run')
Added:
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/ (with props)
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/cocoon-deploy.xml
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/pom.xml
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/
cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/web.xml
Propchange: cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 3 06:03:42 2006
@@ -0,0 +1,6 @@
+
+target
+.classpath
+.project
+.wtpmodules
+work
Added: cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/cocoon-deploy.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/cocoon-deploy.xml?rev=382825&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/cocoon-deploy.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/cocoon-deploy.xml Fri Mar 3 06:03:42 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The 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.
+-->
+<deploy xmlns="http://apache.org/cocoon/blocks/deploy/1.0">
+
+ <cocoon block-fw-urn="org.apache.cocoon:cocoon-default:1.0-SNAPSHOT"/>
+
+ <block id="plugin-demo1" urn="org.apache.cocoon:cocoon-deployer-plugin-demo:1.0-SNAPSHOT">
+ <mount path="/p1"/>
+ </block>
+
+ <block id="plugin-demo2" urn="org.apache.cocoon:cocoon-deployer-plugin-demo:1.0-SNAPSHOT">
+ <mount path="/p2"/>
+ </block>
+
+</deploy>
\ No newline at end of file
Added: cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/pom.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/pom.xml?rev=382825&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/pom.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/pom.xml Fri Mar 3 06:03:42 2006
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-deployer</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>cocoon-deployer-webapp-sample</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <name>Demo Cocoon web application</name>
+ <url>http://cocoon.apache.org</url>
+
+ <build>
+ <finalName>demo</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-deployer-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <!--executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>deploy</goal>
+ </goals>
+ </execution>
+ </executions-->
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty6-plugin</artifactId>
+ <version>6.0.0beta10</version>
+ <configuration>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>8888</port>
+ <maxIdleTime>30000</maxIdleTime>
+ </connector>
+ </connectors>
+ <webAppSourceDirectory>target/demo</webAppSourceDirectory>
+ <contextPath>/</contextPath>
+ <systemProperties>
+ <systemProperty>
+ <name>org.apache.commons.logging.Log</name>
+ <value>org.apache.commons.logging.impl.SimpleLog</value>
+ </systemProperty>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <!-- this is just a runtime dependency for the Jetty6 plugin - I (rpoetz) don't understand
+ why the plugin requires it as it is added to WEB-INF/lib by the deployer ... -->
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-default</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/web.xml?rev=382825&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/web.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-deployer-webapp-sample/src/main/webapp/WEB-INF/web.xml Fri Mar 3 06:03:42 2006
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The 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.
+-->
+
+<!--+
+ | This is the BlocksManagerTestCase web-app configurations file
+ +-->
+
+<!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>
+
+ <!-- Servlet Configuration ========================================== -->
+
+ <servlet>
+ <servlet-name>BlocksManager</servlet-name>
+ <display-name>BlocksManager</display-name>
+ <description>BlocksManager</description>
+
+ <servlet-class>org.apache.cocoon.blocks.servlet.BlocksManager</servlet-class>
+
+ <init-param>
+ <param-name>work-directory</param-name>
+ <param-value>work</param-value>
+ </init-param>
+
+ <!--
+ Set encoding used by the container. If not set the ISO-8859-1 encoding
+ will be assumed.
+ Since the servlet specification requires that the ISO-8859-1 encoding
+ is used (by default), you should never change this value unless
+ you have a buggy servlet container.
+ -->
+ <init-param>
+ <param-name>container-encoding</param-name>
+ <param-value>ISO-8859-1</param-value>
+ </init-param>
+
+ </servlet>
+
+ <!-- URL space mappings ============================================= -->
+
+ <servlet-mapping>
+ <servlet-name>BlocksManager</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>