aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav/src/main
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2013-05-13 16:23:22 +0000
committerMaria Odea B. Ching <oching@apache.org>2013-05-13 16:23:22 +0000
commit48b1538702ca763f0beb6fca0d11f62a8fc444d2 (patch)
treee010bd1d19ce2f4f5898c59d0cc338a2a744e805 /archiva-modules/archiva-web/archiva-webdav/src/main
parenta8bacd7de495ae2422abd4bffb14431ceb4cf7a7 (diff)
downloadarchiva-48b1538702ca763f0beb6fca0d11f62a8fc444d2.tar.gz
archiva-48b1538702ca763f0beb6fca0d11f62a8fc444d2.zip
[MRM-1751] add merged index ttl to repo group configuration + unit tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1481952 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav/src/main')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
index 954e8039c..67f0c1786 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
@@ -1202,8 +1202,7 @@ public class ArchivaDavResourceFactory
if ( tmp != null && tmp.getDirectory() != null && tmp.getDirectory().exists() )
{
- if ( System.currentTimeMillis() - tmp.getCreationTime() > ( indexMerger.getGroupMergedIndexTtl() * 60
- * 1000 ) )
+ if ( System.currentTimeMillis() - tmp.getCreationTime() > ( repositoryGroupConfiguration.getMergedIndexTtl() * 60 * 1000 ) )
{
log.debug( MarkerFactory.getMarker( "group.merged.index" ),
"tmp group index '{}' is too old so delete it", repositoryGroupConfiguration.getId() );