code simplification

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-06 23:25:58 +00:00
parent 4fe1215675
commit 0f9d0ff76e
1 changed files with 3 additions and 7 deletions

View File

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