maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r385566 - /maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Date Mon, 13 Mar 2006 14:52:59 GMT
Author: brett
Date: Mon Mar 13 06:52:50 2006
New Revision: 385566

URL: http://svn.apache.org/viewcvs?rev=385566&view=rev
Log:
fix menu rendering bugs

Modified:
    maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java

Modified: maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java?rev=385566&r1=385565&r2=385566&view=diff
==============================================================================
--- maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
(original)
+++ maven/plugins/branches/site-refactor/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Mon Mar 13 06:52:50 2006
@@ -330,11 +330,14 @@
                     {
                         MavenReport report = (MavenReport) j.next();
 
-                        MenuItem subitem = new MenuItem();
-                        subitem.setName( report.getName( locale ) );
-                        subitem.setHref( report.getOutputName() + ".html" );
+                        if ( !report.equals( summary ) )
+                        {
+                            MenuItem subitem = new MenuItem();
+                            subitem.setName( report.getName( locale ) );
+                            subitem.setHref( report.getOutputName() + ".html" );
 
-                        item.getItems().add( subitem );
+                            item.getItems().add( subitem );
+                        }
                     }
                 }
                 else



Mime
View raw message