Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0-beta-6
-
None
Description
I have two files :
src/site/xdoc/releases/release1.6.3.xml
src/site/xdoc/releases/release1.6.xml
The output is : Embedded error: Files 'releases\release1.6.xml' clashes with existing 'c:\projets\ServicesLayerServer\src\site\xdoc\releases\release1.6.3.xml'.
As I see this comes from org.apache.maven.doxia.module.xhtml.decoration.render.RenderingContext.
There is
this.outputName = document.substring( 0, document.indexOf( "." ) ).replace( '\\', '/' ) + ".html";
IMHO it should be :
this.outputName = document.substring( 0, document.lastIndexOf( "." ) ).replace( '\\', '/' ) + ".html";
I have to try to update dependency in maven-site-plugin to last doxia to test this fix but I have some compilation error due to some changes in doxia
c:\maven-svn\plugins\maven-site-plugin\src\main\java\org\apache\maven\plugins\site\ReportDocumentRenderer.java:[139,26] generate(org.codehaus.doxia.sink.Sink,java.util.Locale) in org.apache.maven.reporting.MavenReport cannot be applied to (org.apache.maven.doxia.siterenderer.sink.SiteRendererSink,java.util.Locale)
This works with 2.0-beta-5.
Attachments
Issue Links
- depends upon
-
DOXIA-161 filename with dot have a false output name
- Closed