doxia snippets plugin and file urls?

View: New views
2 Messages — Rating Filter:   Alert me  

doxia snippets plugin and file urls?

by Christian Hammers-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

The following piece from my examples.apt gives an FileNotFoundException:

%{snippet|id=foo|url=file:src/examples/php/syslog.php}

I tried various combinations of ../ but did not find the right one.
Can anybody tell me the current working directory of the Maven Doxia
plugin?

Hm, trying to use the complete file name just gives me an empty box:

%{snippet|id=a|url=file:///home/james/workspace/log4php/src/examples/php/syslog.php}

produces:

<div class="source"><pre></pre>
</div>

Any ideas?

bye,

-christian-


Re: doxia snippets plugin and file urls?

by Lukas Theussl-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The doxia maven plugin currently doesn't copy resources [1], it will be fixed in
doxia-1.1.2.

HTH,
-Lukas

[1] http://jira.codehaus.org/browse/DOXIA-355


Christian Hammers wrote:

> Hello
>
> The following piece from my examples.apt gives an FileNotFoundException:
>
> %{snippet|id=foo|url=file:src/examples/php/syslog.php}
>
> I tried various combinations of ../ but did not find the right one.
> Can anybody tell me the current working directory of the Maven Doxia
> plugin?
>
> Hm, trying to use the complete file name just gives me an empty box:
>
> %{snippet|id=a|url=file:///home/james/workspace/log4php/src/examples/php/syslog.php}
>
> produces:
>
> <div class="source"><pre></pre>
> </div>
>
> Any ideas?
>
> bye,
>
> -christian-
>
>