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
}
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
{