Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 77791 invoked from network); 20 Aug 2006 17:49:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Aug 2006 17:49:53 -0000 Received: (qmail 21392 invoked by uid 500); 20 Aug 2006 17:49:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 21304 invoked by uid 500); 20 Aug 2006 17:49:51 -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 21293 invoked by uid 99); 20 Aug 2006 17:49:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 10:49:51 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET 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; Sun, 20 Aug 2006 10:49:38 -0700 Received: from apn-100-181.gprsbal.plusgsm.pl (HELO ?172.19.21.165?) (lgawron.mobilebox@home@212.2.100.181) by m029.home.net.pl with SMTP; Sun, 20 Aug 2006 17:49:09 -0000 Message-ID: <44E8A090.6030005@mobilebox.pl> Date: Sun, 20 Aug 2006 19:49:04 +0200 From: Leszek Gawron User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: more about properties in cocoon 2.2 References: <44E638AF.1050301@mobilebox.pl> <44E71B22.4010009@apache.org> <44E73590.8070007@mobilebox.pl> <44E7382F.8050007@mobilebox.pl> <44E83819.7060407@apache.org> <44E85C81.3080600@mobilebox.pl> <44E8982F.4070509@apache.org> In-Reply-To: <44E8982F.4070509@apache.org> Content-Type: text/plain; charset=UTF-8; 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: >>> Yes, I like your idea. Just one simple "include-config" and that's it. >>> And the use-default-dirs can then be used to turn off including from the >>> default location which is on by default (If the directories do not >>> exists this is not concidered an error). >>> If you want I can implement this (I would not disable the possibility to >>> do a include and include-beans in the sitemap though). >> Would be even better if you described in few words how to do it. Then I >> would do it myself and learn a lot. >> > Sure. The whole code is in the SitemapLanguage class. Now, there is the > evaluation of the property-dir attribute and the like. You just have to > get all "include-config" children of the Configuration object and pass > that into the method creating the settings objects. There you read all > the property files. > The second thing is to replace the "include-config" statements with > "include" and "include-bean" elements in the Configuration object (ok, > this could be solved differently but that approach works) - this is > already done for the default locations. > And this should be more or less everything. I forgot one thing: what about the same functionality for main cocoon.xconf? From what I saw there is different code (duplication) that handles inclusions and property management in cocoon.xconf... -- 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