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/02/11 12:08:50 UTC

svn commit: r376967 - in /cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block: ./ src/ src/main/ src/main/resources/ src/main/resources/COB-INF/ src/main/resources/META-INF/

Author: reinhard
Date: Sat Feb 11 03:08:46 2006
New Revision: 376967

URL: http://svn.apache.org/viewcvs?rev=376967&view=rev
Log:
add a very simple block that will be used in the block tutorial

Added:
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/   (with props)
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/pom.xml
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/sitemap.xmap
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/test.xml
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/
    cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/block.xml

Propchange: cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Feb 11 03:08:46 2006
@@ -0,0 +1,5 @@
+
+target
+.classpath
+.project
+.wtpmodules

Added: cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/pom.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/pom.xml?rev=376967&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/pom.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/pom.xml Sat Feb 11 03:08:46 2006
@@ -0,0 +1,70 @@
+<?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>
+  <packaging>jar</packaging>
+  
+  <name>cocoon-tutorial-simple-block</name>
+    
+  <groupId>org.apache.cocoon</groupId>
+  <artifactId>cocoon-tutorial-simple-block</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.cocoon</groupId>
+        <artifactId>cocoon-deployer-plugin</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </plugin>
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>maven-jetty6-plugin</artifactId>
+        <version>6.0-SNAPSHOT</version>
+        <configuration>
+          <connectors>
+            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+              <port>8888</port>
+              <maxIdleTime>30000</maxIdleTime>
+            </connector>
+          </connectors>
+          <webAppSourceDirectory>target/cocoon-webapp</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-tutorial-simple-block/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/sitemap.xmap?rev=376967&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/sitemap.xmap (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/sitemap.xmap Sat Feb 11 03:08:46 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.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+    <map:pipeline>
+      <map:match pattern="test">
+        <map:generate src="test.xml"/>
+        <map:serialize type="xml"/>
+      </map:match>
+    </map:pipeline>
+  </map:pipelines>
+
+</map:sitemap>
+

Added: cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/test.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/test.xml?rev=376967&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/test.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/COB-INF/test.xml Sat Feb 11 03:08:46 2006
@@ -0,0 +1,17 @@
+<?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.
+-->
+<test>org.apache.cocoon:cocoon-tutorial-simple-block</test>
\ No newline at end of file

Added: cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/block.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/block.xml?rev=376967&view=auto
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/block.xml (added)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-tutorial-simple-block/src/main/resources/META-INF/block.xml Sat Feb 11 03:08:46 2006
@@ -0,0 +1,37 @@
+<?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. 
+-->
+<block xmlns="http://apache.org/cocoon/blocks/cob/1.0"
+  id="org.apache.cocoon:cocoon-tutorial-simple-block:1.0-SNAPSHOT">
+  
+  <name>cocoon-tutorial-simple-block</name>
+  <description href="http://your-company.com">
+    A Cocoon block
+  </description>
+  <state href="http://company.com/cocoon-tutorial-simple-block/1.0/state.html" 
+         community="committed" 
+         interfaces="unstable" 
+         implementation="unstable"/>
+  <license href="http://company.com/licenses/">[license]</license>
+  <author href="http://company.com">[author]</author>
+  <servlet class="org.apache.cocoon.sitemap.SitemapServlet">
+    <sitemap file="COB-INF/sitemap.xmap"/>
+  </servlet>  
+  <requirements>
+    <requires interface="http://cocoon.apache.org/blocks/core-components/1.0" 
+      name="core" default="org.apache.cocoon:cocoon-core-components:1.0-SNAPSHOT"/>
+  </requirements>
+</block>
\ No newline at end of file