You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2008/03/03 19:19:36 UTC

svn commit: r633224 - in /maven/plugins/trunk/maven-dependency-plugin: ./ src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java src/site/fml/faq.fml

Author: brianf
Date: Mon Mar  3 10:19:34 2008
New Revision: 633224

URL: http://svn.apache.org/viewvc?rev=633224&view=rev
Log:
updates to clarify includes/excludes handling.

Modified:
    maven/plugins/trunk/maven-dependency-plugin/   (props changed)
    maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java
    maven/plugins/trunk/maven-dependency-plugin/src/site/fml/faq.fml

Propchange: maven/plugins/trunk/maven-dependency-plugin/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Mar  3 10:19:34 2008
@@ -8,3 +8,4 @@
 *.iml
 *.ipr
 *.iws
+target-eclipse

Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java?rev=633224&r1=633223&r2=633224&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromConfiguration/UnpackMojo.java Mon Mar  3 10:19:34 2008
@@ -57,7 +57,7 @@
     
     /**
      * A comma separated list of file patterns to include when unpacking the
-     * artifact.  i.e.  **\/*.xml,**\/*.properties
+     * artifact.  i.e.  **\/*.xml,**\/*.properties NOTE: Excludes patterns override the includes. (component code = return isIncluded( name ) && !isExcluded( name );)
      *  @since 2.0-alpha-5
      * @parameter expression="${mdep.unpack.includes}"
      */
@@ -65,7 +65,7 @@
 
     /**
      * A comma separated list of file patterns to exclude when unpacking the
-     * artifact.  i.e.  **\/*.xml,**\/*.properties
+     * artifact.  i.e.  **\/*.xml,**\/*.properties NOTE: Excludes patterns override the includes. (component code = return isIncluded( name ) && !isExcluded( name );)
      * @since 2.0-alpha-5
      * @parameter expression="${mdep.unpack.excludes}"
      */

Modified: maven/plugins/trunk/maven-dependency-plugin/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/site/fml/faq.fml?rev=633224&r1=633223&r2=633224&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/site/fml/faq.fml (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/site/fml/faq.fml Mon Mar  3 10:19:34 2008
@@ -62,5 +62,12 @@
   	</p>
   </answer>
   </faq>
+      <faq id="includes">
+  <question>Why am I having trouble unpacking only a specific file?</question>
+  <answer><p>
+  	The excludes will override the includes declaration. That means if you specify <excludes>**/*</excludes><includes>**/foo</includes>, you will exclude everything. If you only want foo, then just specify the includes. The plexus component used to unpack uses the following code to determing which files to unpack: return isIncluded( name ) && !isExcluded( name );
+  	</p>
+  </answer>
+  </faq>
  </part>
 </faqs>