You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@apache.org> on 2007/03/22 02:37:16 UTC

Re: svn commit: r521010 - in /forrest/trunk/main/webapp: plugins.xmap resources/stylesheets/pluginBuildFiles-to-pluginDescriptor.xsl sitemap.xmap

> Author: rgardler
> Date: Wed Mar 21 14:45:51 2007
> New Revision: 521010
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=521010
> Log:
> Create plugins.xml directly from the build.xml files of individual plugins. Partial fix for FOR-533
> 
> Added:
>     forrest/trunk/main/webapp/plugins.xmap
>     forrest/trunk/main/webapp/resources/stylesheets/pluginBuildFiles-to-pluginDescriptor.xsl   (with props)
> Modified:
>     forrest/trunk/main/webapp/sitemap.xmap

[ snip ]

> Propchange: forrest/trunk/main/webapp/resources/stylesheets/pluginBuildFiles-to-pluginDescriptor.xsl
> ------------------------------------------------------------------------------
>     svn:eol-style = native
> 
> Modified: forrest/trunk/main/webapp/sitemap.xmap
> URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/sitemap.xmap?view=diff&rev=521010&r1=521009&r2=521010
> ==============================================================================
> --- forrest/trunk/main/webapp/sitemap.xmap (original)
> +++ forrest/trunk/main/webapp/sitemap.xmap Wed Mar 21 14:45:51 2007
> @@ -457,21 +457,18 @@
>       
>        <!-- Body content -->
>        <map:match pattern="**.xml">
> -
> -        <map:match pattern="pluginDocs/plugins_(.*)/index(|\.source).xml" type="regexp">
> -          <map:aggregate element="pluginList">
> -            <map:part src="{lm:plugin.descriptor.forrest}"/>
> -            <map:part src="{lm:plugin.descriptor.whiteboard}"/>
> -          </map:aggregate>
> -          <map:transform src="{lm:transform.plugins.xdoc}">
> -            <map:parameter name="pluginDocsVersion" value="{1}"/>
> -          </map:transform>
> -          <map:serialize type="xml"/>
> -        </map:match>
>     
>          <map:match pattern="locationmap.xml">
>            <map:generate src="{forrest:forrest.locationmap}" />
>            <map:serialize type="xml"/>
> +        </map:match>        
> +       
> +        <map:match pattern="plugins.xml">
> +          <map:mount uri-prefix="" src="plugins.xmap" check-reload="yes" />
> +        </map:match>        
> +       
> +        <map:match pattern="pluginDocs/**">
> +          <map:mount uri-prefix="" src="plugins.xmap" check-reload="yes" />
>          </map:match>

This caused a break in our site-author area because it is the only
place where we exercise URIs like:

A) pluginDocs/index.html
B) pluginDocs/plugins_0_80/usingPlugins.html

I fixed it with r521074 by using the original specific match
to process only the "Plugins Index" and not also normal xdocs.
If you have plans to use plugins.xmap for more, then we will
need a fancy match. I couldn't figure out a more generic one.

One day soon i will setup the forrestbot on our zone to also
build our site-author.

-David