mirror of https://github.com/apache/maven.git
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:
parent
8109fe275d
commit
26a613542c
|
@ -291,6 +291,14 @@ public class SiteMojo
|
||||||
// Try to find duplicate files
|
// Try to find duplicate files
|
||||||
Map duplicate = new LinkedHashMap();
|
Map duplicate = new LinkedHashMap();
|
||||||
String defaultExcludes = StringUtils.join( FileUtils.getDefaultExcludes(), "," );
|
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() )
|
if ( siteDirectoryFile.exists() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue