Use default excludes resources.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-06-20 14:01:58 +00:00
parent 2fe989371b
commit bf095942fc
1 changed files with 5 additions and 1 deletions

View File

@ -122,10 +122,14 @@ public class ResourcesMojo
{
includes = "**/**";
}
List excludes = resource.getExcludes();
excludes.addAll( resource.getDefaultExcludes() );
List files = FileUtils.getFileNames( resourceDirectory,
includes,
listToString( resource.getExcludes() ),
listToString( excludes ),
false );
for ( Iterator j = files.iterator(); j.hasNext(); )