brett 2004/07/02 19:02:30 Modified: xdoc plugin.jelly xdoc/src/plugin-resources navigation.jelly xdoc/src/plugin-resources/templates maven-reports.xml xdoc/xdocs changes.xml Log: allow external link to be used for a report Revision Changes Path 1.61 +1 -0 maven-plugins/xdoc/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /home/cvs/maven-plugins/xdoc/plugin.jelly,v retrieving revision 1.60 retrieving revision 1.61 diff -u -r1.60 -r1.61 --- plugin.jelly 10 May 2004 22:25:05 -0000 1.60 +++ plugin.jelly 3 Jul 2004 02:02:30 -0000 1.61 @@ -74,6 +74,7 @@ ${report.put('pluginName', pluginName)} ${report.put('description', description)} ${report.put('link', link)} + ${report.put('externalLink', externalLink)} ${report.put('target', target)} ${reports.add(report)} </j:set> 1.10 +5 -1 maven-plugins/xdoc/src/plugin-resources/navigation.jelly Index: navigation.jelly =================================================================== RCS file: /home/cvs/maven-plugins/xdoc/src/plugin-resources/navigation.jelly,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- navigation.jelly 10 May 2004 22:25:05 -0000 1.9 +++ navigation.jelly 3 Jul 2004 02:02:30 -0000 1.10 @@ -53,9 +53,13 @@ <item name="Project Reports" href="/maven-reports.html" collapse="true"> <j:forEach var="report" items="${reports}"> <j:set var="link" value="${report.link}"/> + <j:set var="externalLink" value="${report.externalLink}"/> <j:if test="${!empty(link)}"> <item name="${report.name}" href="/${report.link}.html" target="${report.target}"/> </j:if> + <j:if test="${empty(link) and !empty(externalLink)}"> + <item name="${report.name}" href="${report.externalLink}" target="${report.target}"/> + </j:if> </j:forEach> </item> <j:set var="devProcess" value="false"/> @@ -76,4 +80,4 @@ </body> </project> -</j:whitespace> \ No newline at end of file +</j:whitespace> 1.13 +10 -0 maven-plugins/xdoc/src/plugin-resources/templates/maven-reports.xml Index: maven-reports.xml =================================================================== RCS file: /home/cvs/maven-plugins/xdoc/src/plugin-resources/templates/maven-reports.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- maven-reports.xml 18 May 2004 22:39:12 -0000 1.12 +++ maven-reports.xml 3 Jul 2004 02:02:30 -0000 1.13 @@ -47,6 +47,16 @@ <td>$report.description</td> </tr> #end + #if ($report.externalLink && $report.externalLink.length() != 0) + <tr> + #if($report.target && $report.target.length() != 0) + <td><a href="${report.externalLink}" class="externalLink" target="${report.target}">$report.name</a></td> + #else + <td><a href="${report.externalLink}" class="externalLink">$report.name</a></td> + #end + <td>$report.description</td> + </tr> + #end #end </table> </subsection> 1.59 +1 -0 maven-plugins/xdoc/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven-plugins/xdoc/xdocs/changes.xml,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- changes.xml 2 Jul 2004 21:27:56 -0000 1.58 +++ changes.xml 3 Jul 2004 02:02:30 -0000 1.59 @@ -26,6 +26,7 @@ </properties> <body> <release version="1.8-SNAPSHOT" date="in CVS"> + <action dev="brett" type="add">Add an externalLink attribute to a report to use if link is not present</action> <action dev="vmassol" type="add"> Added a link to the release notes in the download report. Note that this link is only created if the project has a <code>xdocs/changes.xml</code>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]