A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/796.html
Document ID: 796
Branch: main
Language: default
Name: BD: Tutorial: Creating, extending and running a block (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/12/06 8:14:35 AM
Updated by: Reinhard Pötz
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 5990 bytes (previous version: 5221 bytes)
Content diff:
(44 equal lines skipped)
-DgroupId=com.mycompany \
-DartifactId=myBlock</pre>
--- <p class="fixme"><em>explain the directory structure, and explain what
block.xml
--- and pom.xml are for.</em></p>
+++ <p>Looking at the filesystem reveals following directories and files:</p>
+++ <pre>/myBlock
+++ +-<em>pom.xml</em>
+++ +-src
+++ +-main
+++ +-java
+++ | +-com
+++ | +-mycompany
+++ | +-blocks
+++ | +-myblock
+++ | +-<em>MyblockAction.java</em>
+++ +-resources
+++ +-META-INF
+++ | +-<em>block.xml
+++ </em>+-cocoon-app
+++ +-<em>sitemap.xmap</em>
+++ +-<em>hello.xml</em>
+++ </pre>
+++
+++ <p>As you can see, the directory structure uses the recommended structure
by the
+++ Maven 2 team. It consists of two descriptor files and some resources. It
may be
+++ a bit confusing, that the block application can be found in
+++ <em>/src/main/resources/cocoon-app</em> but putting it there makes packing
much
+++ simpler as the default Maven 2 packaging mechanism can be used.</p>
+++
+++ <p class="fixme">explain block.xml and pom.xml and their relationship
here</p>
+++
<h1>Run your block</h1>
<p>You want to see your new block it in action? You are only one command
away!
(113 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes