Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 61962 invoked from network); 11 Apr 2005 14:50:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 14:50:37 -0000 Received: (qmail 31582 invoked by uid 500); 11 Apr 2005 14:50:32 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 31530 invoked by uid 500); 11 Apr 2005 14:50:31 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 31516 invoked by uid 99); 11 Apr 2005 14:50:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from smtp001.mail.ukl.yahoo.com (HELO smtp001.mail.ukl.yahoo.com) (217.12.11.32) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 11 Apr 2005 07:50:29 -0700 Received: from unknown (HELO ?192.168.1.31?) (reinhard?poetz@62.178.239.20 with plain) by smtp001.mail.ukl.yahoo.com with SMTP; 11 Apr 2005 14:50:26 -0000 Message-ID: <425A8EAF.7090502@apache.org> Date: Mon, 11 Apr 2005 16:50:23 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Directory structure of blocks References: <20050409083134.46541.qmail@minotaur.apache.org> <425A36D5.4010809@nada.kth.se> <425A3A7B.5030203@apache.org> <425A6B42.1040009@nada.kth.se> <425A7094.8040906@apache.org> <425A8A7A.1030203@nada.kth.se> In-Reply-To: <425A8A7A.1030203@nada.kth.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel Fagerstrom wrote: > Ok, I had some remembrance that we had decided to have a particular > directory structure on the COBs, but I couldn't find any documentation > on that, do you have any link or example? no. But AFAIK there aren't many rules. Those that I know of are: Blocks have a block.xml descriptor and a COB-INF directory, that can contain a directory "classes" and "lib". The block's root sitemap (if there exists any) is defined by the block.xml. I don't know why we named it "COB-INF" but there was (still is?) a good reason for this because I remember some long discussion. Apart from this I'm not sure where to put "block.xml". In analogy to WAR files it should be "COB-INF/block.xml". If the reasons for COB-INF vanished in the meantime, I propose following directory structure: -------------------------------------------------------------- [cocoon block] [DIR] | +-- BLOCK-INF [DIR] +-- block.xml +-- classes [DIR] +-- lib [DIR] -------------------------------------------------------------- WDYT? -- Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc --------------------------------------------------------------------