maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r772430 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
Date Wed, 06 May 2009 21:18:10 GMT
Author: ltheussl
Date: Wed May  6 21:18:10 2009
New Revision: 772430

URL: http://svn.apache.org/viewvc?rev=772430&view=rev
Log:
Additional warning for ambiguous links (MPDF-11)

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java?rev=772430&r1=772429&r2=772430&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
Wed May  6 21:18:10 2009
@@ -449,9 +449,15 @@
                             {
                                 String hash = linkAnchor.substring( hashIndex + 1 );
 
+                                if ( hash.endsWith( ".html" ) && !hash.startsWith(
"./" ) )
+                                {
+                                    getLog().warn( "[Apt Parser] Ambiguous link: '" + hash
+                                            + "'. If this is a local link, prepend \"./\"!"
);
+                                }
+
                                 if ( !DoxiaUtils.isValidId( hash ) )
                                 {
-                                    getLog().warn( "Modified invalid link: " + hash );
+                                    getLog().warn( "[Apt Parser] Modified invalid link: "
+ hash );
 
                                     linkAnchor = linkAnchor.substring( 0, hashIndex ) + "#"
                                         + DoxiaUtils.encodeId( hash, true );



Mime
View raw message