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 2005/10/15 15:18:05 UTC

svn commit: r321331 - /maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java

Author: brett
Date: Sat Oct 15 06:18:01 2005
New Revision: 321331

URL: http://svn.apache.org/viewcvs?rev=321331&view=rev
Log:
PR: MNG-1038
Submitted by: Edwin Punzalan
fix warSourceExcludes issue

Modified:
    maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java

Modified: maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=321331&r1=321330&r2=321331&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (original)
+++ maven/components/trunk/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java Sat Oct 15 06:18:01 2005
@@ -25,6 +25,7 @@
 
 import java.io.File;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Set;
@@ -153,7 +154,7 @@
      */
     protected String[] getExcludes()
     {
-        List excludeList = FileUtils.getDefaultExcludesAsList();
+        List excludeList = new ArrayList( FileUtils.getDefaultExcludesAsList() );
         if ( warSourceExcludes != null && !"".equals( warSourceExcludes ) )
         {
             excludeList.add( warSourceExcludes );