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 2010/05/13 22:35:48 UTC
svn commit: r944006 - in
/maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom:
pom.xml verify.bsh
Author: olamy
Date: Thu May 13 20:35:47 2010
New Revision: 944006
URL: http://svn.apache.org/viewvc?rev=944006&view=rev
Log:
[MPIR-189] Allow configuration of mailing list header text.
add it
Modified:
maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/pom.xml
maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/verify.bsh
Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/pom.xml?rev=944006&r1=944005&r2=944006&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/pom.xml (original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/pom.xml Thu May 13 20:35:47 2010
@@ -164,6 +164,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>@pom.version@</version>
+ <configuration>
+ <introduction>mail list intro text foo</introduction>
+ </configuration>
</plugin>
</plugins>
</reporting>
Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/verify.bsh?rev=944006&r1=944005&r2=944006&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/verify.bsh (original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/it/full-pom/verify.bsh Thu May 13 20:35:47 2010
@@ -1,6 +1,7 @@
import java.io.*;
import java.util.*;
import java.util.regex.*;
+import org.codehaus.plexus.util.*;
try
{
@@ -33,6 +34,17 @@ try
return false;
}
}
+
+ File maillist = new File( siteDir, "mail-lists.html");
+ FileInputStream fis = new FileInputStream ( maillist );
+ String downloadContent = IOUtil.toString ( fis, "UTF-8" );
+ int indexOf = downloadContent.indexOf( "mail list intro text foo" );
+ if ( indexOf < 0)
+ {
+ System.err.println( "mail-lists.html doesn't contain mail list intro text foo" );
+ return false;
+ }
+
}
catch( Throwable t )
{