Joerg Heinicke wrote:

On 23.10.2005 13:40, Upayavira wrote:

Sorry, I'm afraid I don't understand what you are saying!


No problem, let me try a second time:

Ralph made a proposal [1] where exactly one block (= directory) per block (= block in the narrower sense) exists, but with many modules (in the maven sense) in them:

/src
    /blocks
           /cforms
                  /api
                       pom.xml
                  /impl
                       pom.xml
                  /samples
                       pom.xml
                  /test
                       pom.xml

This holds together all parts of one block, but provides still the possibility to separate them.

This structure has several advantages, some of which I enumerated before. While the whole "block" is held together within one subdirectory (which makes it easy to deal with) its seperate facets can easily be broken into separate artifacts. In the case above you would have cforms-api-x.y.z.jar, cforms-impl-a.b.c.jar, and cforms-samples.n.m.n.jar. If you don't want to go through the trouble of splitting up blocks between api and impl then just put the non-test and non-sample stuff into the impl module. The api can easily be extracted later.


Hope this makes it more clear,

Jörg

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=113004733610151&w=4

Ralph

Reply via email to