maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1049016 - /maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
Date Tue, 14 Dec 2010 10:02:14 GMT
Author: ltheussl
Date: Tue Dec 14 10:02:13 2010
New Revision: 1049016

URL: http://svn.apache.org/viewvc?rev=1049016&view=rev
Log:
[MSHARED-172] Do not sort items in Project and Reports menu

Modified:
    maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java

Modified: maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java?rev=1049016&r1=1049015&r2=1049016&view=diff
==============================================================================
--- maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
(original)
+++ maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
Tue Dec 14 10:02:13 2010
@@ -387,7 +387,7 @@ public class DefaultSiteTool
             }
         }
 
-        if ( getLogger().isDebugEnabled() && !relativePath.equals( to ) )
+        if ( getLogger().isDebugEnabled() && !relativePath.toString().equals( to
) )
         {
             getLogger().debug( "Mapped url: " + to + " to relative path: " + relativePath
);
         }
@@ -1480,7 +1480,8 @@ public class DefaultSiteTool
         item.setCollapse( true );
         item.setHref( href );
 
-        Collections.sort( categoryReports, new ReportComparator( locale ) );
+        // MSHARED-172, allow reports to define their order in some other way?
+        //Collections.sort( categoryReports, new ReportComparator( locale ) );
 
         for ( MavenReport report : categoryReports )
         {



Mime
View raw message