forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
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) <> wrote:
> >     [
> > 
> > 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
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?



> --tim
> <locationmap xmlns="">
>   <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="{1}.xml" />
> 	   </match>
> 	   <match pattern="remoteDemo/**.xml">
> 	     <location
> src="{1}.xml"
> />
> 	   </match>
>        </locator>
> </locationmap>

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

View raw message