maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1055202 - in /maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin: issues/IssuesReportGenerator.java jira/JiraMojo.java trac/TracMojo.java
Date Tue, 04 Jan 2011 22:03:13 GMT
Author: dennisl
Date: Tue Jan  4 22:03:13 2011
New Revision: 1055202

URL: http://svn.apache.org/viewvc?rev=1055202&view=rev
Log:
Always use the international date format as recommended by the W3C.

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/issues/IssuesReportGenerator.java
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/JiraMojo.java
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/issues/IssuesReportGenerator.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/issues/IssuesReportGenerator.java?rev=1055202&r1=1055201&r2=1055202&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/issues/IssuesReportGenerator.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/issues/IssuesReportGenerator.java
Tue Jan  4 22:03:13 2011
@@ -70,13 +70,16 @@ public class IssuesReportGenerator
         sinkEndReport( sink );
     }
 
-    public void doGenerateReport( ResourceBundle bundle, Sink sink, List issueList, Locale
locale )
+    public void doGenerateReport( ResourceBundle bundle, Sink sink, List issueList )
     {
         sinkBeginReport( sink, bundle );
 
         constructHeaderRow( sink, issueList, bundle );
 
-        constructDetailRows( sink, issueList, bundle, locale );
+        // Always use the international date format as recommended by the W3C:
+        // http://www.w3.org/QA/Tips/iso-date
+        // This date format is used in the Swedish locale.
+        constructDetailRows( sink, issueList, bundle, new Locale( "sv" ) );
 
         sinkEndReport( sink );
     }
@@ -170,7 +173,7 @@ public class IssuesReportGenerator
 
         for ( int idx = 0; idx < issueList.size(); idx++ )
         {
-            // Use a DateFormat based on the the Locale
+            // Use a DateFormat based on the Locale
             DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);
 
             Issue issue = (Issue) issueList.get( idx );

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/JiraMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/JiraMojo.java?rev=1055202&r1=1055201&r2=1055202&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/JiraMojo.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/JiraMojo.java
Tue Jan  4 22:03:13 2011
@@ -311,7 +311,7 @@ public class JiraMojo
                     getLog().info( "The JIRA Report will contain issues only for the current
version." );
                 }
 
-                report.doGenerateReport( getBundle( locale ), getSink(), issueList, locale
);
+                report.doGenerateReport( getBundle( locale ), getSink(), issueList );
             }
             else
             {

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java?rev=1055202&r1=1055201&r2=1055202&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
Tue Jan  4 22:03:13 2011
@@ -144,7 +144,7 @@ public class TracMojo
             {
                 try
                 {
-                    report.doGenerateReport( getBundle( locale ), getSink(), issueList, locale
);
+                    report.doGenerateReport( getBundle( locale ), getSink(), issueList );
                 }
                 catch ( Exception e )
                 {



Mime
View raw message