From 24d79b2485fc983ed605a193c25fce2eba28b4c3 Mon Sep 17 00:00:00 2001 From: vmassol Date: Thu, 11 Nov 2004 13:46:58 +0000 Subject: [PATCH] MPCHANGES-14: Added sorting of <action> elements. It is controlled by 2 properties. The maven.changes.sort property decides whether sorting is enabled or not and the maven.changes.sort.order one decides the sort order. Defaults to add,fix,update,remove. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116227 13f79535-47bb-0310-9956-ffa450edef68 --- changes/plugin.properties | 6 ++++ changes/src/plugin-resources/changes.jsl | 41 ++++++++++++++++++++++-- changes/xdocs/changes.xml | 7 ++++ changes/xdocs/properties.xml | 22 +++++++++++++ 4 files changed, 74 insertions(+), 2 deletions(-) diff --git a/changes/plugin.properties b/changes/plugin.properties index ab55b076..6d79e091 100644 --- a/changes/plugin.properties +++ b/changes/plugin.properties @@ -35,3 +35,9 @@ maven.changes.issue.template = %URL%/%ISSUE% # For Sourceforge, use the "aid" parameter. For example: # maven.changes.issue.template = http://sourceforge.net/support/tracker.php?aid=%ISSUE% + +# Decide whether to sort the change actions by type or not +maven.changes.sort = false + +# Decide the sort order for action types +maven.changes.sort.order = add,fix,update,remove diff --git a/changes/src/plugin-resources/changes.jsl b/changes/src/plugin-resources/changes.jsl index ee47b38d..cdbacb7b 100644 --- a/changes/src/plugin-resources/changes.jsl +++ b/changes/src/plugin-resources/changes.jsl @@ -26,6 +26,8 @@ xmlns:jsl="jelly:jsl" xmlns:x="jelly:xml" xmlns:doc="doc" + xmlns:u="jelly:util" + xmlns:ant="jelly:ant" xmlns="dummy" trim="false"> @@ -66,8 +68,43 @@ - - + + + + ${maven.changes.sort.order} + + + + + + + + + + + + + + + + + + + + + Invalid type '${actionType}' + + + + + + + + +
TypeChangesBy
TypeChangesBy
diff --git a/changes/xdocs/changes.xml b/changes/xdocs/changes.xml index 11a09c62..c63f0655 100644 --- a/changes/xdocs/changes.xml +++ b/changes/xdocs/changes.xml @@ -25,6 +25,13 @@ + + Added sorting of <action> elements. It is controlled + by 2 properties. The maven.changes.sort property decides + whether sorting is enabled or not and the + maven.changes.sort.order one decides the sort order. + Defaults to add,fix,update,remove. + Fixed typo in changes.xml example on plugin web site. diff --git a/changes/xdocs/properties.xml b/changes/xdocs/properties.xml index 1b091126..bc03fb3d 100644 --- a/changes/xdocs/properties.xml +++ b/changes/xdocs/properties.xml @@ -45,6 +45,28 @@ BugZilla: %URL%/show_bug.cgi?id=%ISSUE% + + maven.changes.sort + Yes + + Decides whether to enable sorting the <action> + elements or not. + + + false + + + + maven.changes.sort.order + Yes + + Decides sort ordering of <action> elements. + It is only used if sorting is enabled. + + + add,fix,update,remove + +