From eb6fed83ca053e93132591267993224afd7bd2ee Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sat, 15 Oct 2005 13:18:01 +0000 Subject: [PATCH] PR: MNG-1038 Submitted by: Edwin Punzalan fix warSourceExcludes issue git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321331 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/maven/plugin/war/AbstractWarMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java index 6fa2023566..70e430a408 100644 --- a/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java +++ b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java @@ -25,6 +25,7 @@ import org.codehaus.plexus.util.FileUtils; 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 @@ public abstract class AbstractWarMojo */ protected String[] getExcludes() { - List excludeList = FileUtils.getDefaultExcludesAsList(); + List excludeList = new ArrayList( FileUtils.getDefaultExcludesAsList() ); if ( warSourceExcludes != null && !"".equals( warSourceExcludes ) ) { excludeList.add( warSourceExcludes );