On Fri, 2008-12-05 at 02:47 +1000, Gavin wrote:
...
> > > In the pluginTemplate we can add commented out example code to
> > > locationmap.xml like :-
> > >
> > > <locator>
> > > <!-- Uncomment the below matches once you have a stylesheet you wish to
> > use.
> > > Note that these are needed for the plugin to work on windows. See FOR-
> > 1108
> > > -->
> > > <!--
> > > <match pattern="plugin.transform.*.*">
> > > <select>
> > > <location src="resources/stylesheets/{1}-to-{2}.xsl" />
> > > <location
> > > src="{forrest:forrest.plugins}/@plugin-name@/resources/stylesheets/{1}-
> > to-{2
> > > }.xsl"/>
> > > </select>
> > > </match>
> > > -->
> > > </locator>
> > >
> > > Currently the <locator /> is empty. Then once a stylesheet has been
> > created
> > > the dev can uncomment out the example.
> >
> > My comment referred to the ant target which creates the new
> > plugin. It already edits some files from the pluginTemplate
> > on the way to add the plugin name, so it should be trivial
> > to add this extra locationmap match.
>
> Ok, that's fine I can do that, it will still need to be in comments though
> as there wont be a stylesheet for it to refer to until the plugin dev
> creates one.
>
Why not:
<match pattern="output.Text.home">
<location
src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.Text/"/>
</match>
or
<match pattern="org.apache.forrest.plugin.output.Text.home">
<location
src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.Text/"/>
</match>
This way we have a nice lm match to refer to.
salu2
--
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>