You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by de...@apache.org on 2007/10/22 22:49:35 UTC

svn commit: r587246 - in /maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src: main/java/org/apache/maven/doxia/module/xhtml/decoration/render/ test/java/org/apache/maven/doxia/module/xhtml/decoration/ test/resources/

Author: dennisl
Date: Mon Oct 22 13:49:34 2007
New Revision: 587246

URL: http://svn.apache.org/viewvc?rev=587246&view=rev
Log:
o Revert r586732 because it breaks the velocity template functionality. This code changes the output filenames of these files so that they are different than before. An example of this is https://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/download.apt.vm, which with this code gets the output filename download.apt.html instead of download.html.

Removed:
    maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/decoration/
    maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/test/resources/file.with.dot.in.name.xml
Modified:
    maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext.java

Modified: maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext.java?rev=587246&r1=587245&r2=587246&view=diff
==============================================================================
--- maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext.java (original)
+++ maven/doxia/doxia/branches/doxia-1.0-alpha-x/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext.java Mon Oct 22 13:49:34 2007
@@ -53,7 +53,7 @@
     {
         this.basedir = basedir;
 
-        this.outputName = document.substring( 0, document.lastIndexOf( "." ) ).replace( '\\', '/' ) + ".html";
+        this.outputName = document.substring( 0, document.indexOf( "." ) ).replace( '\\', '/' ) + ".html";
 
         this.relativePath = PathTool.getRelativePath( basedir.getPath(), new File( basedir, document ).getPath() );