You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2006/01/31 21:52:31 UTC
svn commit: r373908 - in /maven/maven-1/plugins/trunk/dashboard:
plugin.jelly plugin.properties xdocs/changes.xml xdocs/properties.xml
Author: ltheussl
Date: Tue Jan 31 12:52:29 2006
New Revision: 373908
URL: http://svn.apache.org/viewcvs?rev=373908&view=rev
Log:
PR: MPDASHBOARD-28
Support sorting of the report items
Modified:
maven/maven-1/plugins/trunk/dashboard/plugin.jelly
maven/maven-1/plugins/trunk/dashboard/plugin.properties
maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml
maven/maven-1/plugins/trunk/dashboard/xdocs/properties.xml
Modified: maven/maven-1/plugins/trunk/dashboard/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/plugin.jelly?rev=373908&r1=373907&r2=373908&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/dashboard/plugin.jelly Tue Jan 31 12:52:29 2006
@@ -130,10 +130,17 @@
</j:if>
</j:forEach>
+ <j:set var="projectList" value="${reactorProjects}"/>
+ <j:if test="${maven.dashboard.sort == 'true'}">
+ <!-- NOTE: this only works with Maven 1.1 -->
+ <u:sort var="sortedReactorProjects" items="${reactorProjects}" property="${maven.dashboard.sort.property}"/>
+ <j:set var="projectList" value="${sortedReactorProjects}"/>
+ </j:if>
+
<j:file name="${maven.dashboard.report.xml}" prettyPrint="true"
xmlns="dashboard">
<dashboard>
- <j:forEach var="reactorProject" items="${reactorProjects}">
+ <j:forEach var="reactorProject" items="${projectList}">
<u:available
file="${reactorProject.context.getVariable('maven.build.dir')}/dashboard-single.xml">
<!-- FIXME: this should be maven.dashboard.report.single -->
Modified: maven/maven-1/plugins/trunk/dashboard/plugin.properties
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/plugin.properties?rev=373908&r1=373907&r2=373908&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/plugin.properties (original)
+++ maven/maven-1/plugins/trunk/dashboard/plugin.properties Tue Jan 31 12:52:29 2006
@@ -63,6 +63,11 @@
# aggregators.
maven.dashboard.report.showempty = true
+# If true, projects will be sorted by the given property
+# NOTE: this only works with Maven 1.1
+maven.dashboard.sort = false
+maven.dashboard.sort.property = name
+
# Images used when generating the progress bar for the dashboard HTML color
# for left bar
maven.dashboard.report.bar.left = green
Modified: maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml?rev=373908&r1=373907&r2=373908&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/dashboard/xdocs/changes.xml Tue Jan 31 12:52:29 2006
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.9-SNAPSHOT" date="in svn">
+ <action dev="ltheussl" type="add" issue="MPDASHBOARD-28">Allow sorting of dashboard items (requires Maven 1.1).</action>
<action dev="ltheussl" type="add" issue="MPDASHBOARD-30" due-to="Jeff Jensen">Add message on status of finding dashboard-single.xml.</action>
<action dev="ltheussl" type="fix" issue="MPDASHBOARD-35" due-to="Christoph Jerolimov">Fix count of changelog-entries with maven-changelog-plugin-1.9.</action>
<action dev="ltheussl" type="add">Add new aggregators <code>jiraopen</code> and <code>jirascheduled</code>.</action>
Modified: maven/maven-1/plugins/trunk/dashboard/xdocs/properties.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/dashboard/xdocs/properties.xml?rev=373908&r1=373907&r2=373908&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/dashboard/xdocs/properties.xml (original)
+++ maven/maven-1/plugins/trunk/dashboard/xdocs/properties.xml Tue Jan 31 12:52:29 2006
@@ -68,6 +68,11 @@
# aggregators.
maven.dashboard.report.showempty = true
+# If true, projects will be sorted by the given property
+# NOTE: this only works with Maven 1.1
+maven.dashboard.sort = false
+maven.dashboard.sort.property = name
+
# Images used when generating the progress bar for the dashboard HTML color
# for left bar
maven.dashboard.report.bar.left = green