mirror of https://github.com/apache/archiva.git
PR: MRM-112
Added checking if the index directory already exists but is empty, proceed with the indexing. git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@410722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b278ded3b
commit
e5902ec9e5
|
@ -254,7 +254,14 @@ public abstract class AbstractRepositoryIndex
|
||||||
}
|
}
|
||||||
else if ( indexDir.isDirectory() )
|
else if ( indexDir.isDirectory() )
|
||||||
{
|
{
|
||||||
throw new RepositoryIndexException( indexPath + " is not a valid index directory." );
|
if( indexDir.listFiles().length > 1 )
|
||||||
|
{
|
||||||
|
throw new RepositoryIndexException( indexPath + " is not a valid index directory." );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue