2010-06-21 55 views

回答

0

作爲一種變通方法,你可以手動重新定義該項目在自定義site.xml的報表部分:

<!-- Inherit this menu for sub modules. --> 
    <menu name="Module Documentation" inherit="top" > 
     <item name="Overview" href="index.html" > 
     </item> 

     <item name="Information" href="project-info.html" > 
      <item name="Dependencies" href="dependencies.html" /> 
      <item name="Project Plugins" href="plugins.html" /> 
      <item name="Project Summmary" href="project-summary.html" /> 
      ... 
     </item> 

     <item name="Reports" href="project-reports.html" > 
      <item name="Checkstyle" href="checkstyle.html" /> 
      <item name="Your Report" href="your-report.html" /> 
      ... 
     </item> 
    </menu> 

的缺點是:

  • 您必須指定每一個報告。
  • 您還必須提供project-reports.html(例如,通過project-reports.apt),並且您將丟失包含所有報告的自動生成的概覽頁面。
  • 如果某些模塊不包含所有報告,則必須爲它們提供單獨的site.xml文件以覆蓋父站點.xml。

請參閱Configuring the Site Descriptor在網站插件的文檔。