mirror of https://github.com/apache/archiva.git
code simplification
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fe1215675
commit
0f9d0ff76e
|
@ -242,16 +242,12 @@ public class ArchivaIndexingTaskExecutor
|
|||
|
||||
if ( !repository.isSkipPackedIndexCreation() )
|
||||
{
|
||||
File managedRepository = new File( repository.getLocation() );
|
||||
String indexDirectory = repository.getIndexDirectory();
|
||||
final File indexLocation = StringUtils.isBlank( indexDirectory )
|
||||
? new File( managedRepository, ".indexer" )
|
||||
: new File( indexDirectory );
|
||||
IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
|
||||
|
||||
IndexPackingRequest request = new IndexPackingRequest( context, context.getIndexDirectoryFile() );
|
||||
indexPacker.packIndex( request );
|
||||
context.updateTimestamp( true );
|
||||
|
||||
log.debug( "Index file packaged at '{}'.", indexLocation.getPath() );
|
||||
log.debug( "Index file packaged at '{}'.", context.getIndexDirectoryFile() );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue