Could you please revert the Doxia revision : 
http://svn.apache.org/viewvc?view=rev&revision=555417

And deploy a new snapshot version of doxia since latest version
(doxia-core-1.0-alpha-9-20070714.200033-13) is shipping with this patch.

This patch is breaking report created by lots of plugin. Indeed links
beginning with "./some/path/file.html" are no longer considered as local
link on my configuration (Windows with French Locale) and ends up as
links to anchor : href="#./some/path/file.html".

This can be tracked to the fact that
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main
/java/org/apache/maven/doxia/sink/StructureSink.java?revision=519803&vie
w=markup StructureSink#isExternalLink is using File.separator to search
for relative links (which is '\' instead of '/' on windows), while most
of the report plugin are just using the '/' char (for example, see
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/ma
in/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java?revision=5170
80&view=markup AbstractPmdReport#constructXRefLocation ).

Before revision 555417, everything was fine but with this revision, a
lots of reports are broken here, with relative links being now wrongly
considered as links to anchors.

I guess http://jira.codehaus.org/browse/DOXIA-47 should be reopened, and
another solution found (or maybe StructureSink should be more lenient on
the separator char).

Thanks!

Denis.

Reply via email to