[Yanel-dev] What is the element "root-dir" good for?

Michael Wechner michael.wechner at wyona.com
Fri Feb 23 16:47:32 CET 2007


Josias Thöny wrote:

> Michael Wechner wrote:
>
>> Josias Thöny wrote:
>>
>>> Michael Wechner wrote:
>>>
>>>> Hi
>>>>
>>>> I have noticed a new element within the yanel realm config
>>>>
>>>> <root-dir>../..</root-dir>
>>>> </realm-config>
>>>>
>>>> What is this element good for?
>>>
>>>
>>>
>>> It's needed to copy a realm.
>>> Basically yanel only knows the location of the config files of a 
>>> realm, but it doesn't know where the actual data resides. This is a 
>>> problem when a realm should be copied. So I added the root-dir 
>>> element which denotes the directory which contains the complete 
>>> realm. This directory will be copied when a realm is copied.
>>
>>
>>
>> ok, I see, but unfortunately resp. fortunately it doesn't have to be 
>> this way ;-) because depending on how the repositories are being 
>> configured resp. depending on the implementations these can be 
>> scattered all over the place.
>
>
> That's why I wrote the following in the javadoc:
> "A realm can only be copied if it has a <root-dir> element in its 
> config file and if this directory contains the complete realm."


very good :-)

>
>>
>> I think we should rather introduce a cooy method for repositories 
>> within Yarep.
>>
>> WDYT?
>
>
> I guess that the current solution covers about 90% of all real 
> usecases, so I'm not sure if it's a high priority issue to improve 
> that now.
> But we could keep it in mind for the future. Or do you think it's 
> important to improve that now?


no, but I think we should add an ehancement bug resp. I will add one now 
;-) as reminder and future reference

Thanks

Michi

>
> Josias
>
>>
>>> By the way, this is documented in the javadoc of 
>>> RealmConfiguration.java. If you think it should be documented 
>>> somewhere else, please let me know.
>>
>>
>>
>> I will make a note within the config itself and also a warning that 
>> this will only work for realms containing all repositories under one 
>> "root" repository.
>>
>> Cheers
>>
>> Michi
>>
>>>
>>> Josias
>>>
>>>>
>>>> Thanks
>>>>
>>>> Michi
>>>>
>>>
>>>
>>> _______________________________________________
>>> Yanel-development mailing list
>>> Yanel-development at wyona.com
>>> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>>>
>>
>>
>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list