You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Thorsten Scherler <th...@apache.org> on 2004/11/24 19:18:51 UTC
{realpath:/} and plugins
Hello devs,
I want to use the {realpath:/} variable for the fbits plugin but the
result is not what I expected.
I use in the sitemap:
<map:parameter name="contentDir" value="{realpath:/}"/>
Which then returns (where our main sitemap.xmap exist):
/home/thorsten/apache/forrest-trunk/main/webapp
But it should return (where the plugin sitemap exist)
/home/thorsten/apache/forrest-trunk/plugins/org.apache.forrest.plugin.fbits
How can I get the last path returned? Any ideas?
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: {realpath:/} and plugins
Posted by Thorsten Scherler <th...@apache.org>.
El mié, 24-11-2004 a las 20:40, Ross Gardler escribió:
> Thorsten Scherler wrote:
> > I want to use the {realpath:/} variable for the fbits plugin but the
> > result is not what I expected.
> >
> > I use in the sitemap:
> > <map:parameter name="contentDir" value="{realpath:/}"/>
> >
> > Which then returns (where our main sitemap.xmap exist):
> > /home/thorsten/apache/forrest-trunk/main/webapp
> >
> > But it should return (where the plugin sitemap exist)
> > /home/thorsten/apache/forrest-trunk/plugins/org.apache.forrest.plugin.fbits
> >
> > How can I get the last path returned? Any ideas?
>
> {forrest:plugins}/PLUGIN_NAME
>
> Ross
Cheers Ross, I added this information to the howto.
Thx a million, again!
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: {realpath:/} and plugins
Posted by Ross Gardler <rg...@apache.org>.
Ross Gardler wrote:
> Thorsten Scherler wrote:
>
>> I want to use the {realpath:/} variable for the fbits plugin but the
>> result is not what I expected.
>>
>> I use in the sitemap:
>> <map:parameter name="contentDir" value="{realpath:/}"/>
>>
>> Which then returns (where our main sitemap.xmap exist):
>> /home/thorsten/apache/forrest-trunk/main/webapp
>>
>> But it should return (where the plugin sitemap exist)
>> /home/thorsten/apache/forrest-trunk/plugins/org.apache.forrest.plugin.fbits
>>
>>
>> How can I get the last path returned? Any ideas?
>
>
> {forrest:plugins}/PLUGIN_NAME
Sorry, for clarity I will explain a little further. The above will return:
/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.fbits
which is where the plugin is executing from.
Ross
Re: {realpath:/} and plugins
Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> I want to use the {realpath:/} variable for the fbits plugin but the
> result is not what I expected.
>
> I use in the sitemap:
> <map:parameter name="contentDir" value="{realpath:/}"/>
>
> Which then returns (where our main sitemap.xmap exist):
> /home/thorsten/apache/forrest-trunk/main/webapp
>
> But it should return (where the plugin sitemap exist)
> /home/thorsten/apache/forrest-trunk/plugins/org.apache.forrest.plugin.fbits
>
> How can I get the last path returned? Any ideas?
{forrest:plugins}/PLUGIN_NAME
Ross