mirror of https://github.com/apache/archiva.git
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:
parent
c606acd784
commit
6131e693a9
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue