forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: locationmap mounting [was: Re: [jira] Commented: (FOR-573) Provide locationmap mounting capability
Date Mon, 29 Aug 2005 21:28:38 GMT
On Mon, 2005-08-29 at 15:39 -0400, Tim Williams wrote:
> On 8/29/05, Thorsten Scherler (JIRA) <jira@apache.org> wrote:
> >     [ http://issues.apache.org/jira/browse/FOR-573?page=comments#action_12320465
]
> > 
> > Thorsten Scherler commented on FOR-573:
> > ---------------------------------------
> > 
> > I tried to rewrite the internal.view plugin with the locationmap, but that was not
working like I expected. I only have been able to see the lm rewritting when I did forrest
run in the root of the plugin. I reckon it is because of this issue.
> > 
> > Is there a an example of the mount in the lm?
> 
> I'm replying onlist instead of through JIRA to keep JIRA clean of
> free-flowing discussion -- assuming that's desired.
> 
> I've pasted a mounting example below.  Note that because of another
> issue, the lm being mounted *must* exist.  I'm hoping to fix that this
> evening though.  Then the syntax will change to become:
> <select>
>   <mount src="somelocationmap.xml"/>
> </select>
> 
> That said, I'm not sure if that's causing your issue or not.  Are you
> saying you the locationmap isn't working when you try it on a
> seed-sample site?  I actually would have expected it to be the other
> way around since plugin-locationmaps have yet to be tested at all and
> aren't even being mounted via the workaround AFAIK.

Your suspected right. 

I added
plugins/org.apache.forrest.plugin.internal.view/src/documentation/content/locationmap.xml
and changed the internal.xmap to use {lm:test}. 

When I now change to org.apache.forrest.plugin.internal.view and do
forrest run then everything works fine like I expected.

Now I change my test project and the locationmap {lm:test} do not get
matched anymore within views.

I wonder how the daisy plugin is working from a new seed.

To understand it right, we would have to mount all locationsmap from
plugins from the main lm in forrest, right. Did we thought about
mounting them dynamically?

Thx.

salu2

> --tim
> 
> 
> <locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
> 
>   <components>
>     <matchers default="lm">
>       <matcher 
>         name="lm" 
>         src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
>     </matchers>
>   </components>
>   
>   <mount src="{project:content}locationmap2.xml"/>
>   
>   <locator>
> 	   <match pattern="rewriteDemo/**">
> 	     <location src="http://www.burrokeet.org/{1}.xml" />
> 	   </match>
> 	   <match pattern="remoteDemo/**.xml">
> 	     <location
> src="http://svn.apache.org/repos/asf/forrest/trunk/site-author/content/xdocs/{1}.xml"
> />
> 	   </match>
>        </locator>
> </locationmap>
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message