PR: MNG-1382("duplicate files" exception)

Update defaultExcludes depending locales and defaultLocale

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vincent Siveton 2005-10-31 23:10:58 +00:00
parent 8109fe275d
commit 26a613542c
1 changed files with 8 additions and 0 deletions

View File

@ -291,6 +291,14 @@ public class SiteMojo
// Try to find duplicate files
Map duplicate = new LinkedHashMap();
String defaultExcludes = StringUtils.join( FileUtils.getDefaultExcludes(), "," );
if ( locale.getLanguage().equals( defaultLocale.getLanguage() ) )
{
for (Iterator it = localesList.iterator(); it.hasNext();)
{
Locale l = (Locale) it.next();
defaultExcludes += "," + l.getLanguage() + "/**";
}
}
if ( siteDirectoryFile.exists() )
{