diff options
author | Olivier Lamy <olamy@apache.org> | 2013-02-06 23:25:58 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-02-06 23:25:58 +0000 |
commit | 0f9d0ff76ed13fe4cca56dc7fe9cd9634fa2acdd (patch) | |
tree | e9f3839053e9219b97e2bba07a517847ddb56779 | |
parent | 4fe1215675e57982f44cab4def17d8ecd082cd49 (diff) | |
download | archiva-0f9d0ff76ed13fe4cca56dc7fe9cd9634fa2acdd.tar.gz archiva-0f9d0ff76ed13fe4cca56dc7fe9cd9634fa2acdd.zip |
code simplification
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443274 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java index a5197dcf5..f85582d99 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java @@ -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 { |