You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2009/07/28 01:48:47 UTC
svn commit: r798335 - in
/maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation:
pom.xml verify.bsh
Author: olamy
Date: Mon Jul 27 23:48:47 2009
New Revision: 798335
URL: http://svn.apache.org/viewvc?rev=798335&view=rev
Log:
really test publishDate in changes.xml interpolation.
Modified:
maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/pom.xml
maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/verify.bsh
Modified: maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/pom.xml?rev=798335&r1=798334&r2=798335&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/pom.xml (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/pom.xml Mon Jul 27 23:48:47 2009
@@ -83,6 +83,8 @@
<configuration>
<filteringChanges>true</filteringChanges>
<issueLinkTemplate>http://myjira/browse/%ISSUE%</issueLinkTemplate>
+ <publishDateLocale>en</publishDateLocale>
+ <publishDateFormat>yyyy-MM-dd</publishDateFormat>
</configuration>
<reportSets>
<reportSet>
Modified: maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/verify.bsh?rev=798335&r1=798334&r2=798335&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/verify.bsh (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/it/report-changes-interpolation/verify.bsh Mon Jul 27 23:48:47 2009
@@ -19,6 +19,7 @@
*/
import java.io.*;
+import java.text.*;
import java.util.*;
import java.util.jar.*;
import org.codehaus.plexus.util.*;
@@ -79,6 +80,16 @@
return false;
}
+ Date now = new Date();
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd", new Locale( "en" ) );
+ String formattedDate = simpleDateFormat.format( now );
+
+ indexOf = reportContent.indexOf( formattedDate );
+ if ( indexOf < 0)
+ {
+ System.err.println( "changes-report.html doesn't publishDate" );
+ return false;
+ }
}
catch( Throwable e )