This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag maven-launchpad-plugin-2.2.0
in repository 
https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git

commit 2bdd3eee778256421f1c2b0270f7cc10d8fe7775
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Aug 30 15:14:33 2012 +0000

    SLING-2590 :  Provide a way to exclude configurations from partial bundle 
lists
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@1378983
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../AbstractUsingBundleListMojo.java               | 27 +++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/maven/projectsupport/AbstractUsingBundleListMojo.java
 
b/src/main/java/org/apache/sling/maven/projectsupport/AbstractUsingBundleListMojo.java
index 34a8b02..ce579ed 100644
--- 
a/src/main/java/org/apache/sling/maven/projectsupport/AbstractUsingBundleListMojo.java
+++ 
b/src/main/java/org/apache/sling/maven/projectsupport/AbstractUsingBundleListMojo.java
@@ -38,6 +38,7 @@ import 
org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.BundleList;
 import org.codehaus.plexus.archiver.ArchiverException;
 import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
 import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 import org.drools.KnowledgeBase;
 import org.drools.KnowledgeBaseFactory;
@@ -107,6 +108,22 @@ public abstract class AbstractUsingBundleListMojo extends 
AbstractBundleListMojo
     private File[] rewriteRuleFiles;
 
     /**
+     * The comma separated list of tokens to include when copying configs
+     * from partial bundle lists.
+     *
+     * @parameter default-value="**"
+     */
+    private String[] configIncludes;
+
+    /**
+     * The comma separated list of tokens to exclude when copying the configs
+     * from partial bundle lists.
+     *
+     * @parameter
+     */
+    private String[] configExcludes;
+
+    /**
      * @component
      */
     protected MavenFileFilter mavenFileFilter;
@@ -312,8 +329,16 @@ public abstract class AbstractUsingBundleListMojo extends 
AbstractBundleListMojo
                         this.tempConfigDir.mkdirs();
                         this.overlayConfigDir = this.tempConfigDir;
                     }
+                    String excludes = FileUtils.getDefaultExcludesAsString();
+                    if ( this.configExcludes != null ) {
+                        excludes = excludes + ',' + 
StringUtils.join(this.configExcludes, ",");
+                    }
+                    String includes = null;
+                    if ( this.configIncludes != null ) {
+                        includes = StringUtils.join(this.configIncludes, ",");
+                    }
                     FileUtils.copyDirectory(configDir, this.overlayConfigDir,
-                            null, FileUtils.getDefaultExcludesAsString());
+                                    includes, excludes);
                 }
             } catch (final ArchiverException ae) {
                 throw new MojoExecutionException("Unable to extract 
configuration archive.",ae);

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to