El vie, 23-06-2006 a las 11:44 +0200, Andreas Hartmann escribió:
> Thorsten Scherler wrote:
>
> [...]
>
> >> Now that the build process generates a list of available modules
> >> with their source directories, it would be quite easy to mount
> >> the sitemaps directly instead of copying the modules to the webapp
> >> directory.
> >>
> >> WDYT, should we provide this option?
> >> I think it will simplify development since the build process
> >> is only necessary to compile classes + patch xconf files.
> >> For production, the copying approach should still be available.
> >>
> >
> > Big +1
>
> Do you think that a locationmap is suitable for this purpose?
>
> What we have now is something like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <modules xmlns="http://apache.org/lenya/module-list/1.0">
> <module src="/Users/nobby/apache/clean/lenya/trunk/src/modules/bxe"/>
> <module src="/Users/nobby/apache/clean/lenya/trunk/src/modules/cforms"/>
> <module src="/Users/nobby/apache/clean/lenya/trunk/src/modules/fckeditor"/>
> ...
>
> We could easily extend this to
>
> <?xml version="1.0" encoding="UTF-8"?>
> <modules xmlns="http://apache.org/lenya/module-list/1.0">
> <module shortcut="bxe" src=".../lenya/trunk/src/modules/bxe"/>
> <module shortcut="cforms" src=".../lenya/trunk/src/modules/cforms"/>
> ...
>
> which would be the basis for mounting the module sitemaps.
> (I chose "shortcut" because "id" is the long form which is not used
> for addressing at the moment.)
>
> Could this be transformed to a location map, or should we generate
> a sitemap with mount statements?
I am not sure whether the location map does bring more value to this
specific issue.
The location map is an easy way to have multiple location configured as
fallback on the one hand and on the other hand the location map makes it
easy to change the location on a publication base.
I will look into extend 1.4. that we can use the location map. I reckon
we can reuse lot of code from forrest ant targets to activate the
location map in lenya core and publications.
...but yeah we can transform this above list to something like:
<match pattern="module.shortcut.**">
<location
src="/Users/nobby/apache/clean/lenya/trunk/src/modules/{1}" />
</match>
and one can access it like:
lm://module.shortcut.bxe/sitemap.xmap
That has the benefit that one can access *all* files in the module
directly. Like
lm://module.shortcut.opendocument/xslt/opendocument2xhtml.xsl.
That may as well solve the resource-module problem.
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]