maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r391860 - /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java
Date Thu, 06 Apr 2006 00:00:13 GMT
Author: brett
Date: Wed Apr  5 17:00:12 2006
New Revision: 391860

URL: http://svn.apache.org/viewcvs?rev=391860&view=rev
Log:
[MSITE-98] allow files to be excluded form site generation
Submitted by: Jesse McConnell

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java?rev=391860&r1=391859&r2=391860&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java
Wed Apr  5 17:00:12 2006
@@ -78,6 +78,14 @@
     protected File siteDirectory;
 
     /**
+     * module type exclusion mappings
+     * ex: fml -> **\/*-m1.fml  (excludes -m1.fml files)
+     *
+     * @parameter
+     */
+    protected Map moduleExcludes;
+
+    /**
      * Specifies the output encoding.
      *
      * @parameter expression="${outputEncoding}" default-value="ISO-8859-1"
@@ -495,6 +503,11 @@
             context.addSiteDirectory( siteDirectory );
             context.addModuleDirectory( xdocDirectory, "xdoc" );
             context.addModuleDirectory( xdocDirectory, "fml" );
+        }
+
+        if ( moduleExcludes != null )
+        {
+            context.setModuleExcludes( moduleExcludes );
         }
 
         context.addSiteDirectory( generatedSiteDirectory );



Mime
View raw message