correctly delete previous index directory

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-06 21:21:18 +00:00
parent c606acd784
commit 6131e693a9
1 changed files with 5 additions and 0 deletions

View File

@ -532,6 +532,11 @@ public class DefaultManagedRepositoryAdmin
{
indexer.removeIndexingContext( indexingContext, true );
}
// delete directory too as only content is deleted
File indexDirectory = indexingContext.getIndexDirectoryFile();
FileUtils.deleteDirectory( indexDirectory );
createIndexContext( managedRepository );
}
catch ( IOException e )