PR: MPDASHBOARD-28

Support sorting of the report items


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@373908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-01-31 20:52:29 +00:00
parent 2c38a0a601
commit 469dfb1013
4 changed files with 19 additions and 1 deletions

View File

@ -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 -->

View File

@ -63,6 +63,11 @@ maven.dashboard.runreactor = true
# 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

View File

@ -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>

View File

@ -68,6 +68,11 @@ maven.dashboard.runreactor = true
# 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