cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: more about properties in cocoon 2.2
Date Mon, 21 Aug 2006 11:22:13 GMT
Leszek Gawron schrieb:
> 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...
> 
I think we should not use the functionality for cocoon.xconf and just
use it in sitemaps. The configuration for cocoon.xconf is imho working
fine/complete.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message