cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r415375 - in /cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample: pom.xml src/main/resources/COB-INF/sitemap.xmap
Date Mon, 19 Jun 2006 17:16:37 GMT
Author: reinhard
Date: Mon Jun 19 10:16:36 2006
New Revision: 415375

URL: http://svn.apache.org/viewvc?rev=415375&view=rev
Log:
add plugins to pom so that the samples run 'stand-alone'; fix paths in sitemap; doesn't work
yet as there are dependencies on cocoon-webapp which have to move into a block that can be
refered to

Modified:
    cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/pom.xml
    cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/pom.xml?rev=415375&r1=415374&r2=415375&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/pom.xml (original)
+++ cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/pom.xml Mon Jun 19 10:16:36 2006
@@ -38,12 +38,59 @@
   <name>apples Block Samples</name>
   <description></description>
   
+  <build>
+    <finalName>cocoon-apples-sample</finalName>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.cocoon</groupId>
+        <artifactId>cocoon-deployer-plugin</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+      </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/cocoon-apples-sample</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>
     <dependency>
       <groupId>org.apache.cocoon</groupId>
       <artifactId>cocoon-apples-impl</artifactId>
       <version>1.0.0-SNAPSHOT</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-core-samples-main-sample</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+    </dependency>   
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-template-impl</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+    </dependency>   
+    <dependency>
+      <groupId>org.apache.cocoon</groupId>
+      <artifactId>cocoon-forms-impl</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+    </dependency>             
   </dependencies>
 
 </project>

Modified: cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/src/main/resources/COB-INF/sitemap.xmap?rev=415375&r1=415374&r2=415375&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/src/main/resources/COB-INF/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/src/main/resources/COB-INF/sitemap.xmap
Mon Jun 19 10:16:36 2006
@@ -113,12 +113,12 @@
       </map:match>
 
       <map:match pattern="calc/*">
-        <map:generate type="jx" src="context://samples/flow/jxcalc/screens/{1}.xml"/>
+        <map:generate type="jx" src="context://blocks/cocoon-core-samples-main-sample/flow/jxcalc/screens/{1}.xml"/>
         <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
           <map:parameter name="servletPath" value="{request:servletPath}"/>
           <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
           <map:parameter name="contextPath" value="{request:contextPath}"/>
-          <map:parameter name="file" value="samples/flow/jxcalc/screens/{1}.xml"/>
+          <map:parameter name="file" value="blocks/cocoon-core-samples-main-sample/flow/jxcalc/screens/{1}.xml"/>
           <map:parameter name="remove" value="{0}"/>
         </map:transform>
         <map:serialize/>



Mime
View raw message