Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 86268 invoked from network); 4 Sep 2006 10:13:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 10:13:43 -0000 Received: (qmail 14288 invoked by uid 500); 4 Sep 2006 10:13:41 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 13847 invoked by uid 500); 4 Sep 2006 10:13:39 -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 13824 invoked by uid 99); 4 Sep 2006 10:13:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 03:13:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.85.125.162] (HELO v07528.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Sep 2006 03:13:38 -0700 Received: from sj163.internetdsl.tpnet.pl (HELO ?192.168.1.62?) (lgawron.mobilebox@home@80.55.87.163) by m029.home.net.pl with SMTP; Mon, 4 Sep 2006 10:13:17 -0000 Message-ID: <44FBFC44.6060908@mobilebox.pl> Date: Mon, 04 Sep 2006 12:13:24 +0200 From: Leszek Gawron User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: reading settings in cocoon.xconf References: <44FBF160.7000303@mobilebox.pl> <44FBF9B6.7060904@apache.org> In-Reply-To: <44FBF9B6.7060904@apache.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Leszek Gawron wrote: >> Another feature request for Carsten. We have already discussed this once: >> >> While testing a development block the properties from >> /src/main/resources/META-INF/properties/* are not copied to webapp >> directory. In order to load them properly we need >> also in cocoon.xconf (currently it only works in sitemaps). This way we >> can load properties directly from source folder. >> > Do we really need this? :) Currently the implementation is imho clean > and separating concerns: there is one component reading the properties > and providing them via Spring and another one is able to read avalon > configurations. I don't want to mix these as some day in the future we > will remove the Avalon stuff (or make it optional) and then we have to > change everything again. > > Can we somehow "configure" this in a different way? Perhaps by passing > in a system property pointing to the properties directory? As long as it is configured automatically so the only thing that user does is: mvn clean compile cocoon:deploy jetty:run -- Leszek Gawron, IT Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65