Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 11780 invoked from network); 4 Nov 2006 19:45:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2006 19:45:20 -0000 Received: (qmail 10693 invoked by uid 500); 4 Nov 2006 19:45:30 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 10374 invoked by uid 500); 4 Nov 2006 19:45:29 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 10363 invoked by uid 99); 4 Nov 2006 19:45:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Nov 2006 11:45:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.237.222.115] (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Nov 2006 11:45:15 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [85.226.145.173] (c-ad91e255.188-1-64736c14.cust.bredbandsbolaget.se [85.226.145.173]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id kA4JirTJ007787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Nov 2006 20:44:53 +0100 (MET) Message-ID: <454CEDB4.6070303@nada.kth.se> Date: Sat, 04 Nov 2006 20:44:52 +0100 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [2.2] Runtime deployment References: <454BBFE7.5030809@apache.org> <454C6B85.50804@mobilebox.pl> <454CDDBF.70207@apache.org> In-Reply-To: <454CDDBF.70207@apache.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Carsten Ziegeler skrev: > Leszek Gawron wrote: >>> What is missing? >>> 1. With the changes from above, Cocoon does not run as an unexpanded war >>> file anymore. So I think we should extract the COB-INF directory into >>> the temporary directory and mount the blocks from there. This should be >>> very simple to change. >> apart from one thing, how do I do that?: >>> >>> >>> >>> >>> >>> >>> >>> >>> >> when I get block files unpacked to some temporary directory which >> location can change any time. >> > We could provide our own protocol "temp:" which is resolved to the > temporary directory, so you can use > "temp://blocks/geminismart-server-mobile/" for example. I would prefer blockcontext:/geminismart-server-mobile/ or blockcontext:geminismart-server-mobile/ as the COB-INF directory in a block has the same role as a resource directory as the top level directory for a webapp. An open question is how to find the block name. I doubt that version numbering is systematic enough to make it possible to strip it away from the block name for the file name of the block jar. We could use the artifactId from the META-INF/maven/org.apache.cocoon/cocoon-block-name/pom.properties file. Maven also sometimes (?) creates some field in the manifest file that could be used e.g.: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: maven Build-Jdk: 1.4.2_06 Extension-Name: cocoon-batik-impl Specification-Title: Specification-Vendor: The Apache Software Foundation Implementation-Vendor: The Apache Software Foundation Implementation-Title: cocoon-batik-impl Implementation-Version: 1.0.0-SNAPSHOT I doesn't create such manifest files all the time though. The jars created when I compile locally with Maven 2.0.4 looks like: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: Daniel Fagerstrom Build-Jdk: 1.5.0_06 One possibility would to have a block specific manifest entry with the block name: Cocoon-Block-Name: cocoon-batik-impl /Daniel